-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.linux.nvidia.yaml
More file actions
51 lines (48 loc) · 1.16 KB
/
compose.linux.nvidia.yaml
File metadata and controls
51 lines (48 loc) · 1.16 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
services:
miro:
env_file:
- .env
image: ${IMAGE_NAME}:${IMAGE_TAG:-latest}
container_name: ${CONTAINER_NAME}
privileged: true
network_mode: host
tty: true
stdin_open: true
restart: unless-stopped
command: bash
environment:
# GUI
DISPLAY: ${DISPLAY}
GDK_BACKEND: "x11"
GDK_DISABLE_XSHM: "1"
QT_X11_NO_MITSHM: "1"
OPENCV_VIDEOIO_MSMF_DISABLE: "1"
OPENCV_VIDEOIO_X11_NO_SHM: "1"
# Sound
PULSE_SERVER: ${PULSE_SERVER}
PULSE_COOKIE: /root/${PULSE_COOKIE}
# GPU
NVIDIA_VISIBLE_DEVICES: "all"
NVIDIA_DRIVER_CAPABILITIES: "all"
volumes:
# X11 forwarding
- ${X11UNIX}:${X11UNIX}:rw
- ${XAUTH}:${XAUTH}:rw
# Audio (PulseAudio)
- ${PULSE_SOCKET}:${PULSE_SOCKET}:rw
- ${HOME}/${PULSE_COOKIE}:/root/${PULSE_COOKIE}:ro
# MiRo catkin workspace
- mdpv:/root/mdk/catkin_ws/src
devices:
- /dev/snd:/dev/snd
group_add:
- audio
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
mdpv: