srcds-docker is for easily spinning up 128 tick CS:GO servers with useful plugins and configs installed.
- Install Docker https://docs.docker.com/install/
Simply run the srcds-docker.sh
script.
curl -s -L https://raw.githubusercontent.com/sbuggay/srcds-docker/master/srcds-docker.sh | bash
If docker is installed and running, the image will be built for you. This can take ~20 minutes depending on your internet speed.
After the initial run, servers will be spun up nearly instantly.
devan@bender:~$ ./srcds-docker.sh
sbuggay/srcds-docker server started
port rcon
27015 8127tcfo
7c9ba318bd1b9d05c0326ba9d2d0509a6860fc8824dcb063932d99e77cedc7fc
If you want to change some of the build steps for your image you can do so manually very easily.
docker build -t sbuggay/srcds-docker https://github.com/sbuggay/srcds-docker.git
By default the image comes with:
- metamod
- sourcemod
- splewis/csgo-pug-setup (disabled)
- splewis/csgo-practice-mode (disabled)
- EnableDisable.sp
If you supply your steam id as a build arg --build-arg STEAM_ID=<steam_id>
, your steam id will be injected into the sourcemod admin's config at build time.
docker run -d sbuggay/srcds-docker +sv_setsteamaccount <glst_token> +rcon_password <rcon_password>
You can run more than one container on the same machine by changing the port that srcds uses and that docker exposes.
docker run -d sbuggay/srcds-docker -p 27016:27016 -p 27016:27016/udp -port 27016 +sv_setsteamaccount <glst_token> +rcon_password <rcon_password>
If you need to do any maintainance, you can open a shell in your container with:
docker exec -it <container> /bin/bash
All you need to do is restart the container and srcds will autoupdate automatically.
docker restart <container>