2016-04-26 23:10:49 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
steam:
|
|
|
|
image: andrey01/steam
|
|
|
|
network_mode: bridge
|
|
|
|
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
|
2016-10-25 14:56:20 +00:00
|
|
|
- ./data:/home/user
|
2016-04-26 23:10:49 +00:00
|
|
|
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
|
2016-08-06 13:04:44 +00:00
|
|
|
# Ubuntu's NVIDIA driver:
|
2016-08-06 16:20:55 +00:00
|
|
|
- /usr/lib/nvidia-361-prime:/h1_64:ro
|
|
|
|
- /usr/lib/nvidia-340:/h2_64:ro
|
|
|
|
- /usr/lib/nvidia-340-prime:/h3_64:ro
|
|
|
|
- /usr/lib/nvidia-304:/h4_64:ro
|
|
|
|
- /usr/lib32/nvidia-361:/h5_32:ro
|
|
|
|
- /usr/lib32/nvidia-340:/h6_32:ro
|
|
|
|
- /usr/lib32/nvidia-304:/h7_32:ro
|
2016-08-06 13:04:44 +00:00
|
|
|
# Ubuntu's generic libGL:
|
2016-08-06 16:20:55 +00:00
|
|
|
- /usr/lib/x86_64-linux-gnu:/h8_64:ro
|
|
|
|
- /usr/lib/i386-linux-gnu:/h9_32:ro
|
|
|
|
# openSUSE's NVIDIA driver:
|
|
|
|
- /usr/X11R6/lib:/h10_32:ro
|
|
|
|
- /usr/X11R6/lib64:/h11_64:ro
|
|
|
|
- /usr/lib:/h12_32:ro
|
|
|
|
- /usr/lib64:/h13_64:ro
|
2016-10-25 11:32:32 +00:00
|
|
|
dns: steam # a DNS cache is needed to avoid upstream bug https://github.com/ValveSoftware/steam-for-linux/issues/3401
|
2016-04-26 23:10:49 +00:00
|
|
|
devices:
|
2016-08-06 13:04:44 +00:00
|
|
|
- /dev/nvidia0
|
|
|
|
- /dev/nvidiactl
|
|
|
|
- /dev/nvidia-uvm
|
2016-04-30 13:29:12 +00:00
|
|
|
# uncomment this when running NVIDIA Driver >= 361
|
2016-08-06 13:04:44 +00:00
|
|
|
- /dev/nvidia-modeset
|
2016-04-26 23:10:49 +00:00
|
|
|
- /dev/dri
|
|
|
|
# - /dev/snd
|
|
|
|
environment:
|
|
|
|
- DISPLAY=unix$DISPLAY
|
|
|
|
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
|
2016-04-29 19:54:22 +00:00
|
|
|
# Use Steam provided runtime, requires --reset
|
|
|
|
# Steam provided runtime seems to be less stable with this image
|
|
|
|
# - STEAM_RUNTIME=1
|
2016-08-07 17:18:38 +00:00
|
|
|
shm_size: 4G
|