73 lines
2.4 KiB
YAML
73 lines
2.4 KiB
YAML
---
|
|
services:
|
|
steam-headless:
|
|
image: josh5/steam-headless:latest
|
|
restart: unless-stopped
|
|
runtime: ${DOCKER_RUNTIME}
|
|
shm_size: ${SHM_SIZE}
|
|
ipc: host # Could also be set to 'shareable'
|
|
ulimits:
|
|
nofile:
|
|
soft: 1024
|
|
hard: 524288
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_ADMIN
|
|
- SYS_NICE
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
- apparmor:unconfined
|
|
|
|
# NETWORK:
|
|
network_mode: host
|
|
hostname: ${NAME}
|
|
extra_hosts:
|
|
- "${NAME}:127.0.0.1"
|
|
|
|
# ENVIRONMENT:
|
|
## Read all config variables from the .env file
|
|
env_file: .env
|
|
|
|
# DEVICES:
|
|
devices:
|
|
# Use the host fuse device.
|
|
- /dev/fuse
|
|
# Add the host uinput device.
|
|
- /dev/uinput
|
|
# Add AMD/Intel HW accelerated video encoding/decoding devices (optional)
|
|
#- /dev/dri
|
|
# Add NVIDIA HW accelerated devices (optional - must be run with runc docker runtime. If you use the nvidia runtime, this is not needed)
|
|
#- /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'
|
|
|
|
# VOLUMES:
|
|
volumes:
|
|
# The location of your home directory.
|
|
- /opt/container-data/steam-headless/home/:/home/default/:rw
|
|
|
|
# The location where all games should be installed.
|
|
# This path needs to be set as a library path in Steam after logging in.
|
|
# Otherwise, Steam will store games in the home directory above.
|
|
- /mnt/games/:/mnt/games/:rw
|
|
|
|
# The Xorg socket. This will be shared with other containers so they can access the X server.
|
|
# Select only one option or leave commented out to not share the Xorg socket with any other Docker containers.
|
|
# Option #1) Start a X server in the container to share with any other containers.
|
|
#- /opt/container-data/steam-headless/.X11-unix/:/tmp/.X11-unix/:rw
|
|
# Option #2) Use an existing X server running on the host.
|
|
#- /tmp/.X11-unix/:/tmp/.X11-unix/:rw
|
|
|
|
# Pulse audio socket. This will be shared with other containers so they can access the audio sink.
|
|
# Leave commented out to not share the pulse socket with any other Docker containers.
|
|
#- /opt/container-data/steam-headless/pulse/:/tmp/pulse/:rw
|
|
|
|
|