-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·94 lines (89 loc) · 2.23 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '2.3'
services:
ros:
build: ./ros
image: axyz1288/aidocker:ros
container_name: ros
runtime: nvidia
user: aiRobots
volumes:
- ~/aiRobots/ros:/home/aiRobots
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- /tmp/.docker.xauth:/tmp/.docker.xauth
- /dev:/dev
environment:
- "DISPLAY=$DISPLAY"
- "QT_X11_NO_MITSHM=1"
- "XAUTHORITY=/tmp/.docker.xauth"
cpp:
build: ./cpp
depends_on: [ros]
image: axyz1288/aidocker:cpp
container_name: cpp
runtime: nvidia
user: aiRobots
privileged: true
volumes:
- ~/aiRobots/cpp:/home/aiRobots
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- /tmp/.docker.xauth:/tmp/.docker.xauth:rw
- /dev:/dev
environment:
- "ROS_HOSTNAME=cpp"
- "ROS_MASTER_URI=http://ros:11311"
- "DISPLAY=$DISPLAY"
- "QT_X11_NO_MITSHM=1"
- "XAUTHORITY=/tmp/.docker.xauth"
pybullet:
build: ./pybullet
depends_on: [ros]
image: axyz1288/aidocker:pybullet
container_name: pybullet
runtime: nvidia
user: aiRobots
volumes:
- ~/aiRobots/pybullet:/home/aiRobots
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- /tmp/.docker.xauth:/tmp/.docker.xauth:rw
environment:
- "ROS_HOSTNAME=pybullet"
- "ROS_MASTER_URI=http://ros:11311"
- "DISPLAY=$DISPLAY"
- "QT_X11_NO_MITSHM=1"
- "XAUTHORITY=/tmp/.docker.xauth"
base:
build: ./python
image: axyz1288/aidocker:python
container_name: python
pytorch:
build: ./pytorch
depends_on: [base]
image: axyz1288/aidocker:pytorch
container_name: pytorch
runtime: nvidia
user: aiRobots
shm_size: '128gb'
ports:
- "1010:8888"
- "1011:6006"
volumes:
- ~/aiRobots/pytorch:/home/aiRobots
environment:
- "ROS_HOSTNAME=pytorch"
- "ROS_MASTER_URI=http://ros:11311"
tensorflow:
build: ./tensorflow
depends_on: [base]
image: axyz1288/aidocker:tensorflow
container_name: tensorflow
runtime: nvidia
user: aiRobots
shm_size: '128gb'
ports:
- "1020:8888"
- "1021:6006"
volumes:
- ~/aiRobots/tensorflow:/home/aiRobots
environment:
- "ROS_HOSTNAME=tensorflow"
- "ROS_MASTER_URI=http://ros:11311"