-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 835 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (28 loc) · 835 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
version: "2.3"
services:
dev:
build: .
runtime: nvidia
shm_size: 8GB
privileged: true
ipc: host
environment:
DISPLAY: ${DISPLAY}
# ports:
# - 8888:8888
volumes:
# Mounts the project folder to '/workspace'. While this file is in .devcontainer,
# mounts are relative to the first file in the list, which is a level up.
- /tmp/.X11-unix:/tmp/.X11-unix
- ${HOME}/.Xauthority:/root/.Xauthority
- /run/jtop.sock:/run/jtop.sock
- .:/workspace:cached
devices:
- /dev/video0:/dev/video0
# [Optional] Required for ptrace-based debuggers like C++, Go, and Rust
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity