-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 997 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 997 Bytes
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
services:
devol-dev:
image: ${USER}_devol_dev/sim
build:
context: .
dockerfile: Dockerfile
args:
- USER_UID=${USER_UID:?err}
- USER_GID=${USER_GID:?err}
volumes:
- ${DEVOL_WS:?err}:/workspace/devol
- /tmp/.X11-unix:/tmp/.X11-unix
- /dev/dri:/dev/dri
- /tmp/runtime-${USER}:/tmp/runtime-${USER}
- /home/${USER}/USD:/home/${USER}/USD
working_dir: /workspace/devol
stdin_open: true
tty: true
network_mode: host
ipc: host
environment:
- DEBIAN_FRONTEND=noninteractive
- QT_X11_NO_MITSHM=1
- XDG_RUNTIME_DIR=/tmp/runtime-${USER}
- LIBGL_ALWAYS_INDIRECT=1
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- DISPLAY=${DISPLAY:-:1}
privileged: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
devices:
- /dev/dri:/dev/dri