Created
February 19, 2017 23:18
-
-
Save stefanahman/3a4141a945137955ca588139e9b9804d to your computer and use it in GitHub Desktop.
Docker config for cs:go app
This file contains 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
[Unit] | |
Description=steam csgo launcher docker container | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
User=steam | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill steam-csgo | |
ExecStartPre=-/usr/bin/docker rm steam-csgo | |
ExecStartPre=/usr/bin/docker pull kmallea/steamcmd | |
ExecStart=/usr/bin/docker run \ | |
--name steam-csgo \ | |
--privileged \ | |
-v /home/steam/steam:/Steam \ | |
-v /home/steam/steamgames/csgo:/opt/csgo \ | |
-e PGID=1001 \ | |
-e PUID=1001 \ | |
-e TZ=Europe/Berlin \ | |
kmallea/steamcmd \ | |
+login anonymous \ | |
+force_install_dir /opt/csgo \ | |
+app_update 740 validate \ | |
+quit | |
Restart=always | |
RestartSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment