-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.38 KB
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
version: "3.9"
services:
cpu:
container_name: my-humble-cpu
image: masakifujiwara1/ros2:my-humble
build:
context: .
dockerfile: Dockerfile
network_mode: host
ipc: host
privileged: true
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=${XAUTH:-}
- QT_X11_NO_MITSHM=1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./docker_share:/home/host_files
- /dev:/dev
- ${XAUTH:-/tmp/.docker.xauth}:${XAUTH:-/tmp/.docker.xauth}
- /home/${USER}/.ssh:/home/ubuntu/.ssh
- /home/${USER}/.gitconfig:/home/ubuntu/.gitconfig
stdin_open: true
tty: true
gpu:
container_name: my-humble-gpu
image: masakifujiwara1/ros2:my-humble
build:
context: .
dockerfile: Dockerfile
network_mode: host
ipc: host
privileged: true
environment:
- DISPLAY=${DISPLAY}
- XAUTHORITY=${XAUTH:-}
- QT_X11_NO_MITSHM=1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ./docker_share:/home/host_files
- /dev:/dev
- ${XAUTH:-/tmp/.docker.xauth}:${XAUTH:-/tmp/.docker.xauth}
- /home/${USER}/.ssh:/home/ubuntu/.ssh
- /home/${USER}/.gitconfig:/home/ubuntu/.gitconfig
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
stdin_open: true
tty: true