Docker-Compose -> Docker_Env Folder

- Move docker-compose back to docker_env folder
- Update relative paths to Dockerfiles and volume mounts
This commit is contained in:
Sravan Balaji
2020-04-05 15:37:13 -04:00
parent 45f241fc95
commit faf12547ca

View File

@@ -12,10 +12,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: ./docker_env/ros-dev build: ./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:
- .docker_env/ros-dev:/app - ./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
@@ -26,10 +26,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: ./docker_env/ros-turtlesim build: ./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:
- ./docker_env/ros-turtlesim:/app - ./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
@@ -42,10 +42,10 @@ services:
# ROS Production Service # ROS Production Service
ros: ros:
# Use Dockerfile in ros folder # Use Dockerfile in ros folder
build: ./docker_env/ros build: ./ros
# Mount ros folder on host to app folder in container # Mount ros folder on host to app folder in container
volumes: volumes:
- ./docker_env/ros:/app - ./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
@@ -56,15 +56,15 @@ services:
# Gazebo Production Service # Gazebo Production Service
gazebo: gazebo:
# Use Dockerfile in gazebo folder # Use Dockerfile in gazebo folder
build: ./docker_env/gazebo build: ./gazebo
# Mount gazebo folder on host to app folder in container # Mount gazebo folder on host to app folder in container
volumes: volumes:
#- .docker_env/gazebo/.gazebo:/root/.gazebo #- .docker_env/gazebo/.gazebo:/root/.gazebo
- ./rrrobot_src:/home/rrrobot/rrrobot_src - ../rrrobot_src:/app/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: /home/rrrobot #working_dir: /home/rrrobot
hostname: "rrrobot-env" hostname: "rrrobot-env"