mirror of
https://github.com/EECS-467-W20-RRRobot-Project/RRRobot.git
synced 2025-09-01 03:43:13 +00:00
Fixed volumes in docker-compose.yml for gazebo Dockerfile
This commit is contained in:
@@ -8,10 +8,10 @@ services:
|
|||||||
# ROS Development Service
|
# ROS Development Service
|
||||||
ros-dev:
|
ros-dev:
|
||||||
# Use Dockerfile in ros-dev folder
|
# Use Dockerfile in ros-dev folder
|
||||||
build: ./ros-dev
|
build: ./docker_env/ros-dev
|
||||||
# Mount ros-dev folder on host to app folder in container
|
# Mount ros-dev folder on host to app folder in container
|
||||||
volumes:
|
volumes:
|
||||||
- ./ros-dev:/app
|
- .docker_env/ros-dev:/app
|
||||||
# Set DISPLAY variable and network mode for GUIs
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
environment:
|
environment:
|
||||||
- DISPLAY=${IP_ADDRESS}:0.0
|
- DISPLAY=${IP_ADDRESS}:0.0
|
||||||
@@ -22,10 +22,10 @@ services:
|
|||||||
# ROS Turtlesim Service
|
# ROS Turtlesim Service
|
||||||
ros-turtlesim:
|
ros-turtlesim:
|
||||||
# Use Dockerfile in ros-turtlesim folder
|
# Use Dockerfile in ros-turtlesim folder
|
||||||
build: ./ros-turtlesim
|
build: ./docker_env/ros-turtlesim
|
||||||
# Mount ros-turtlesim folder on host to app folder in container
|
# Mount ros-turtlesim folder on host to app folder in container
|
||||||
volumes:
|
volumes:
|
||||||
- ./ros-turtlesim:/app
|
- ./docker_env/ros-turtlesim:/app
|
||||||
# Set DISPLAY variable and network mode for GUIs
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
environment:
|
environment:
|
||||||
- DISPLAY=${IP_ADDRESS}:0.0
|
- DISPLAY=${IP_ADDRESS}:0.0
|
||||||
@@ -38,10 +38,10 @@ services:
|
|||||||
# ROS Production Service
|
# ROS Production Service
|
||||||
ros:
|
ros:
|
||||||
# Use Dockerfile in ros folder
|
# Use Dockerfile in ros folder
|
||||||
build: ./ros
|
build: ./docker_env/ros
|
||||||
# Mount ros folder on host to app folder in container
|
# Mount ros folder on host to app folder in container
|
||||||
volumes:
|
volumes:
|
||||||
- ./ros:/app
|
- ./docker_env/ros:/app
|
||||||
# Set DISPLAY variable and network mode for GUIs
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
environment:
|
environment:
|
||||||
- DISPLAY=${IP_ADDRESS}:0.0
|
- DISPLAY=${IP_ADDRESS}:0.0
|
||||||
@@ -52,13 +52,15 @@ services:
|
|||||||
# Gazebo Production Service
|
# Gazebo Production Service
|
||||||
gazebo:
|
gazebo:
|
||||||
# Use Dockerfile in gazebo folder
|
# Use Dockerfile in gazebo folder
|
||||||
build: ./gazebo
|
build: ./docker_env/gazebo
|
||||||
# Mount gazebo folder on host to app folder in container
|
# Mount gazebo folder on host to app folder in container
|
||||||
volumes:
|
volumes:
|
||||||
- ./gazebo/.gazebo:/root/.gazebo
|
#- .docker_env/gazebo/.gazebo:/root/.gazebo
|
||||||
|
- ./rrrobot_src:/home/rrrobot/rrrobot_src
|
||||||
# Set DISPLAY variable and network mode for GUIs
|
# Set DISPLAY variable and network mode for GUIs
|
||||||
environment:
|
environment:
|
||||||
- DISPLAY=${IP_ADDRESS}:0.0
|
- DISPLAY=${IP_ADDRESS}:0.0
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
# Set working directory in container to app folder
|
# Set working directory in container to app folder
|
||||||
working_dir: /app
|
#working_dir: /home/rrrobot
|
||||||
|
hostname: "rrrobot-env"
|
Reference in New Issue
Block a user