steam/docker-compose.yml

50 lines
1.4 KiB
YAML
Raw Normal View History

2018-12-22 11:06:08 +00:00
version: '2'
2016-04-26 23:10:49 +00:00
services:
steam:
2018-12-21 15:52:33 +00:00
hostname: steam
2016-04-26 23:10:49 +00:00
network_mode: bridge
2018-12-22 11:06:08 +00:00
build: .
2018-12-21 15:52:33 +00:00
# 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
2016-04-26 23:10:49 +00:00
devices:
2018-03-01 19:05:37 +00:00
# Common:
- /dev/dri
# - /dev/snd
# NVIDIA:
2016-08-06 13:04:44 +00:00
- /dev/nvidia0
- /dev/nvidiactl
- /dev/nvidia-uvm
2018-12-21 15:52:33 +00:00
- /dev/nvidia-uvm-tools
2018-03-01 19:05:37 +00:00
# NVIDIA driver >= 361:
2016-08-06 13:04:44 +00:00
- /dev/nvidia-modeset
2018-03-01 19:05:37 +00:00
# AMD/ATI Radeon:
# - /dev/kfd
2018-12-21 15:52:33 +00:00
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
2018-12-22 11:06:08 +00:00
# Needed for Vulkan ICD Discovery
- /usr/share/vulkan/icd.d:/usr/share/vulkan/icd.d:ro
2018-12-21 15:52:33 +00:00
# security_opt:
# - apparmor=unconfined
cap_add:
- SYS_PTRACE
# - ALL
# privileged: true