50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
steam:
|
|
hostname: steam
|
|
network_mode: bridge
|
|
build: .
|
|
# DNS cache is needed to avoid resolver abuse
|
|
# https://github.com/ValveSoftware/steam-for-linux/issues/3401
|
|
dns: 127.0.0.1
|
|
shm_size: 4G
|
|
environment:
|
|
- DISPLAY=unix$DISPLAY
|
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
|
#- DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
|
|
- USER_ID=1000
|
|
# - STEAM_RUNTIME=1
|
|
devices:
|
|
# Common:
|
|
- /dev/dri
|
|
# - /dev/snd
|
|
# NVIDIA:
|
|
- /dev/nvidia0
|
|
- /dev/nvidiactl
|
|
- /dev/nvidia-uvm
|
|
- /dev/nvidia-uvm-tools
|
|
# NVIDIA driver >= 361:
|
|
- /dev/nvidia-modeset
|
|
# AMD/ATI Radeon:
|
|
# - /dev/kfd
|
|
volumes:
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/machine-id:/etc/machine-id:ro
|
|
- $XDG_RUNTIME_DIR/pulse:/run/user/1000/pulse
|
|
# - $XDG_RUNTIME_DIR/bus:/run/user/1000/bus
|
|
- ./data:/home/user
|
|
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
|
|
# Location to your NVIDIA drivers:
|
|
- /usr/lib/i386-linux-gnu:/hostlibs/32:ro
|
|
- /usr/lib/x86_64-linux-gnu:/hostlibs/64:ro
|
|
# Needed for Vulkan ICD Discovery
|
|
- /usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d:ro
|
|
# security_opt:
|
|
# - apparmor=unconfined
|
|
cap_add:
|
|
- SYS_PTRACE
|
|
# - ALL
|
|
# privileged: true
|