Skip to content
Snippets Groups Projects
docker-compose.yml 666 B
Newer Older
Antoine Lima's avatar
Antoine Lima committed
version: '3.8'
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:
Antoine Lima's avatar
Antoine Lima committed
      - ./workspace:/root/ws
      - ./bash_history:/root/.bash_history
      - /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
Antoine Lima's avatar
Antoine Lima committed
      - DISPLAY=:0