-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 938 Bytes
/
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
version: '3.5'
services:
workspace:
build:
context: ./workspace
args:
- TIAGO_USER=${TIAGO_USER}
volumes:
- './tiago_home:${HOME}:rw'
- '${HOME}/.ssh:${HOME}/.ssh:rw'
- '/tmp/.X11-unix:/tmp/.X11-unix:rw'
- '/etc/localtime:/etc/localtime:ro'
- '/etc/passwd:/etc/passwd:ro'
- '/etc/group:/etc/group:ro'
- '/etc/shadow:/etc/shadow:ro'
- '${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native'
environment:
- DISPLAY
- QT_X11_NO_MITSHM=1
- TIAGO_USER=${TIAGO_USER}
- TIAGO_UID=${TIAGO_UID}
- TIAGO_GID=${TIAGO_GID}
- PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native
devices:
- '/dev/snd'
group_add:
- 'audio'
tty: true
entrypoint: "/entrypoint.sh"
runtime: nvidia
working_dir: '${HOME}'
user: '${TIAGO_UID}:${TIAGO_GID}'
privileged: true
network_mode: "host"