version: '2.2' services: ros: # uncomment build and comment image to build directly from Dockerfile image: registry.gitlab.utc.fr/sy31/docker:noetic #build: . network_mode: "host" # Share network with the turtlebot to freely communicate with it container_name: ros-sy31 volumes: - ~/sy31_workspace:/home/ws # local_machine_path:container_path - /tmp/.X11-unix:/tmp/.X11-unix:rw # redirection X11 environment: - QT_X11_NO_MITSHM=1 - ROS_MASTER_URI=http://192.168.1.1:11311 # Reference turtlebot as the master - ROS_IP=192.168.1.138 # Adapt to current IP - TURTLEBOT3_MODEL=burger - DISPLAY