-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.repo
More file actions
63 lines (63 loc) · 1.93 KB
/
Copy pathdocker-compose.yml.repo
File metadata and controls
63 lines (63 loc) · 1.93 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
56
57
58
59
60
61
62
63
services:
steam-headless-wayland:
# comment out build and uncomment image to switch between local build and docker hub image
build: .
network_mode: host
#image: gymnae/steam-headless
#pull_policy: always
restart: always
privileged: true # Required to take DRM Master of the dummy plug
ipc: host # Performance
shm_size: '8gb'
tty: true
stdin_open: true
ulimits:
rtprio: 99 # <--- REQUIRED: Allow Realtime Priority 99
memlock: -1 # <--- REQUIRED: Allow unlimited locked memory
nofile:
soft: 524288
hard: 524288
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_NICE
- IPC_LOCK
security_opt:
- seccomp:unconfined
- apparmor:unconfined
volumes:
- ./steam-user:/home/steam
- ./sunshine-conf:/home/steam/.config/sunshine
## uncomment and adapt path if you want to mount external storage for your steam library
# - /mnt/localgames:/home/steam/external_library:rw
- /dev/input:/dev/input
devices:
- /dev/fuse
- /dev/uinput
- /dev/uhid
- /dev/hidraw
# Add NVIDIA HW accelerated devices
- /dev/dri:/dev/dri
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-modeset
- /dev/nvidia-uvm
- /dev/nvidia-uvm-tools
- /dev/nvidia-caps/nvidia-cap1
- /dev/nvidia-caps/nvidia-cap2
# Ensure container access to devices 13:*
device_cgroup_rules:
- 'c 13:* rmw'
- 'c 10:223 rmw'
environment:
- PUID=1000
- PGID=1000
- WIDTH=2560 # Initial startup resolution W
- HEIGHT=1600 # Initial startup resolution H
- REFRESH=60 # Initial startup Refresh
- GENERATE_LOCALE=de_DE.UTF-8
- LANG=de_DE.UTF-8
- KEYBOARD_LAYOUT=de # XKB layout code (de, us, fr, etc.)
- TZ=Europe/Berlin
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all