forked from yuxiang-gao/docker-ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 2.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.7'
services:
ros-master:
image: yuxianggao/ros-master:${DOCKER_ROS_DISTRO}-${DOCKER_ARCH}
build:
context: dockers/ros-master
args:
ROS_DISTRO: "$DOCKER_ROS_DISTRO"
# ARCH: "$DOCKER_ARCH"
container_name: ros-master
network_mode: "host"
privileged: true
# Map volumes to sync time with the host
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: always
ros-realsense:
image: yuxianggao/ros-realsense:${DOCKER_ROS_DISTRO}-${DOCKER_ARCH}
build:
context: dockers/ros-realsense
args:
ROS_DISTRO: "$DOCKER_ROS_DISTRO"
# ARCH: "$DOCKER_ARCH"
container_name: ros-realsense
privileged: true
depends_on:
- ros-master
network_mode: "host"
command: /bin/bash -c "roslaunch --wait realsense2_camera rs_rgbd.launch initial_reset:=true"
restart: unless-stopped
ros-gui:
image: yuxianggao/ros-gui:${DOCKER_ROS_DISTRO}-${DOCKER_ARCH}
build:
context: dockers/ros-gui
args:
ROS_DISTRO: "$DOCKER_ROS_DISTRO"
# ARCH: "$DOCKER_ARCH"
container_name: ros-gui
network_mode: "host"
privileged: true
depends_on:
- ros-realsense
volumes:
#- /dev
#- /etc/group:/etc/group:ro
#- /etc/passwd:/etc/passwd:ro
#- /etc/shadow:/etc/shadow:ro
#- /etc/sudoers.d:/etc/sudoers.d:ro
# xhost +local:root
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- $HOME/.Xauthority:/root/.Xauthority:rw
environment:
- "DISPLAY"
command: /bin/bash -c "rqt"
restart: unless-stopped
ros-dnn:
image: yuxianggao/ros-dnn:${DOCKER_ROS_DISTRO}-${DOCKER_ARCH}
build:
context: dockers/ros-dnn
args:
ROS_DISTRO: "$DOCKER_ROS_DISTRO"
# ARCH: "$DOCKER_ARCH"
container_name: ros-dnn
network_mode: "host"
privileged: true
depends_on:
- ros-realsense
command: /bin/bash -c "roslaunch --wait dnn_detect dnn_detect.launch camera:=/camera/color image:=image_raw"
restart: unless-stopped