-
-
Save ihainan/791bdf1980c2d89fba7156e81c80bb04 to your computer and use it in GitHub Desktop.
Steam Headless example .env file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ____ _ | |
| # / ___| _ _ ___| |_ ___ _ __ ___ | |
| # \___ \| | | / __| __/ _ \ '_ ` _ \ | |
| # ___) | |_| \__ \ || __/ | | | | | | |
| # |____/ \__, |___/\__\___|_| |_| |_| | |
| # |___/ | |
| # | |
| NAME=SteamHeadless | |
| TZ=Asia/Shanghai | |
| USER_LOCALES=en_US.UTF-8 UTF-8 | |
| DISPLAY=:55 | |
| SHM_SIZE=16G | |
| ## HOME_DIR: | |
| ## Description: The path to the home directory on your host. Mounts to `/home/default` inside the container. | |
| HOME_DIR=./home | |
| ## SHARED_SOCKETS_DIR: | |
| ## Description: Shared sockets such as pulse audio and X11. | |
| SHARED_SOCKETS_DIR=./sockets | |
| ## GAMES_DIR: | |
| ## Description: The path to the games directory on your host. Mounts to `/mnt/games` inside the container. | |
| GAMES_DIR=./games | |
| # ____ __ _ _ _ _ | |
| # | _ \ ___ / _| __ _ _ _| | |_ | | | |___ ___ _ __ | |
| # | | | |/ _ \ |_ / _` | | | | | __| | | | / __|/ _ \ '__| | |
| # | |_| | __/ _| (_| | |_| | | |_ | |_| \__ \ __/ | | |
| # |____/ \___|_| \__,_|\__,_|_|\__| \___/|___/\___|_| | |
| # | |
| # | |
| PUID=1000 | |
| PGID=1000 | |
| UMASK=000 | |
| USER_PASSWORD=your_password_here | |
| # __ __ _ | |
| # | \/ | ___ __| | ___ | |
| # | |\/| |/ _ \ / _` |/ _ \ | |
| # | | | | (_) | (_| | __/ | |
| # |_| |_|\___/ \__,_|\___| | |
| # | |
| # | |
| ## MODE: | |
| ## Options: ['primary', 'secondary'] | |
| ## Description: Steam Headless containers can run in a secondary mode that will only start | |
| ## a Steam process that will then use the X server of either the host or another | |
| ## Steam Headless container running in 'primary' mode. | |
| MODE=primary | |
| # ____ _ | |
| # / ___| ___ _ ____ _(_) ___ ___ ___ | |
| # \___ \ / _ \ '__\ \ / / |/ __/ _ \/ __| | |
| # ___) | __/ | \ V /| | (_| __/\__ \ | |
| # |____/ \___|_| \_/ |_|\___\___||___/ | |
| # | |
| # | |
| # Web UI | |
| ## WEB_UI_MODE: | |
| ## Options: ['vnc', 'neko', 'none'] | |
| ## Description: Configures the WebUI to use for accessing the virtual desktop. | |
| ## Supported Modes: ['primary'] | |
| WEB_UI_MODE=vnc | |
| ## ENABLE_VNC_AUDIO: | |
| ## Options: ['true', 'false'] | |
| ## Description: Enables audio over for the VNC Web UI if 'WEB_UI_MODE' is set to 'vnc'. | |
| ENABLE_VNC_AUDIO=false | |
| ## PORT_NOVNC_WEB: | |
| ## Description: Configure the port to use for the WebUI. | |
| PORT_NOVNC_WEB=8083 | |
| ## NEKO_NAT1TO1: | |
| ## Description: Configure nat1to1 for the neko WebUI if it is enabled by setting 'WEB_UI_MODE' to 'neko'. | |
| ## This will need to be the IP address of the host. | |
| NEKO_NAT1TO1= | |
| # Steam | |
| ## ENABLE_STEAM: | |
| ## Options: ['true', 'false'] | |
| ## Description: Enable Steam to run on start. This will also cause steam to restart automatically if closed. | |
| ## Supported Modes: ['primary', 'secondary'] | |
| ENABLE_STEAM=true | |
| ## STEAM_ARGS: | |
| ## Description: Additional steam execution arguments. | |
| STEAM_ARGS=-silent | |
| # Sunshine | |
| ## ENABLE_SUNSHINE: | |
| ## Options: ['true', 'false'] | |
| ## Description: Enable Sunshine streaming service. | |
| ## Supported Modes: ['primary'] | |
| ENABLE_SUNSHINE=true | |
| ## SUNSHINE_USER: | |
| ## Description: Set the Sunshine service username. | |
| SUNSHINE_USER=ihainan | |
| ## SUNSHINE_PASS: | |
| ## Description: Set the Sunshine service password. | |
| SUNSHINE_PASS=your_password_here | |
| # Xorg | |
| ## ENABLE_EVDEV_INPUTS: | |
| ## Available Options: ['true', 'false'] | |
| ## Description: Enable Keyboard and Mouse Passthrough. This will configure the Xorg server to catch all | |
| ## evdev events for Keyboard, Mouse, etc. | |
| ## Supported Modes: ['primary'] | |
| ENABLE_EVDEV_INPUTS=true | |
| ## FORCE_X11_DUMMY_CONFIG: | |
| ## Available Options: ['true', 'false'] | |
| ## Description: Forces the installation of xorg.dummy.conf. This should be used when your output device does not have a monitor connected. | |
| ## Supported Modes: ['primary'] | |
| FORCE_X11_DUMMY_CONFIG=false | |
| # Nvidia specific config (not required for non Nvidia GPUs) | |
| ## NVIDIA_DRIVER_CAPABILITIES: | |
| ## Options: ['all', 'compute', 'compat32', 'graphics', 'utility', 'video', 'display'] | |
| ## Description: Controls which driver libraries/binaries will be mounted inside the container. | |
| ## Supported Modes: ['primary', 'secondary'] | |
| NVIDIA_DRIVER_CAPABILITIES=all | |
| ## NVIDIA_DRIVER_CAPABILITIES: | |
| ## Available Options: ['all', 'none', '<GPU UUID>'] | |
| ## Description: Controls which GPUs will be made accessible inside the container. | |
| ## Supported Modes: ['primary', 'secondary'] | |
| NVIDIA_VISIBLE_DEVICES=all | |
| ## NVIDIA_DRIVER_VERSION: | |
| ## Description: Specify a driver version to force installation. | |
| ## Not meant to be used if nvidia container toolkit is installed. | |
| ## Detect current host driver installed with `nvidia-smi 2> /dev/null | grep NVIDIA-SMI | cut -d ' ' -f3` | |
| ## Supported Modes: ['primary', 'secondary'] | |
| NVIDIA_DRIVER_VERSION= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment