Sign inSign up

tractr/counter-strike-source-servers

By tractr

•Updated over 1 year ago

Docker images to server Counter-Strike:Source with mods

Image
1

5.2K

tractr/counter-strike-source-servers repository overview

⁠Docker images for Counter-Strike:Source dedicated servers

Images are available on Docker Hub⁠.

⁠Base image

Built from foxylion/steam-css⁠ with additional configuration.

⁠Start the image with all options
docker run -d --name css-server-27015 \
           -p 27015:27015 -p 27015:27015/udp -p 1200:1200 \
           -p 27005:27005/udp -p 27020:27020/udp -p 26901:26901/udp \
           -e RCON_PASSWORD="mypassword" \
           -e CSS_PASSWORD="csspassword" \
           -e CSS_PORT="27015" \
           -e CSS_TV_PORT="27020" \
           -e CSS_CLIENT_PORT="27005" \
           -e CSS_TICKRATE="100" \
           -e CSS_MAXPLAYERS="16" \
           -e CSS_STARTMAP="de_dust2" \
           -e CSS_HOSTNAME="My server name" \
           -e CSS_SVLAN="1" \
           -e CSS_BOTS_FILL="8" \
           tractr/counter-strike-source-servers:latest
⁠Available environment variables
NameDescriptionDefault Value
RCON_PASSWORDRCON passwordRandom password
CSS_PASSWORDServer password
CSS_PORTServer port27015
CSS_TV_PORTTV port27020
CSS_CLIENT_PORTClient port27005
CSS_TICKRATEServer tickrate100
CSS_MAXPLAYERSMax players16
CSS_STARTMAPStart mapde_dust2
CSS_HOSTNAMEServer nameCounter-Strike: Source Server
CSS_SVLANLAN server1
CSS_BOTS_FILLAdd bots to reach a min number of players0
CSS_BOTS_DIFFICULTYSet Bot Difficulty 0=easy 1=normal 2=hard 3=expert1
⁠Custom mapcycle.txt
-v /path/to/mapcycle.txt:/home/steam/css/cstrike/cfg/mapcycle.txt
⁠Modified server.cfg

The default server.cfg can also be overridden, but you can also only override some specific settings, therefore use the following pattern

-v /path/to/my-server.cfg:/home/steam/css/cstrike/cfg/my-server.cfg
⁠More information

Check the original image on GitHub⁠ for more details.

⁠Hide and Seek

Built from foxylion/steam-css⁠ with Hide and Seek⁠ plugin.

⁠Configuration

Available configurations are listed here⁠.

⁠Gun Game

Additional mod: https://forums.alliedmods.net/showthread.php?t=93977⁠

Contains custom maps. See gun-game.mapcycle.txt⁠.

⁠Deathmatch

Additional mod for deathmatch: DeathMatch:SM⁠

⁠Build the image

docker build . --tag tractr/counter-strike-source-servers:latest --target classic
docker build . --tag tractr/counter-strike-source-servers:hide-and-seek --target hide-and-seek
⁠Build and push all images
docker build . --tag tractr/counter-strike-source-servers:latest --target classic && \
docker push tractr/counter-strike-source-servers:latest && \
docker build . --tag tractr/counter-strike-source-servers:classic --target classic && \
docker push tractr/counter-strike-source-servers:classic && \
docker build . --tag tractr/counter-strike-source-servers:hide-and-seek --target hide-and-seek && \
docker push tractr/counter-strike-source-servers:hide-and-seek && \
docker build . --tag tractr/counter-strike-source-servers:gun-game --target gun-game && \
docker push tractr/counter-strike-source-servers:gun-game

Tag summary

Content type

Image

Digest

sha256:a42b024b5…

Size

1.3 GB

Last updated

over 2 years ago

docker pull tractr/counter-strike-source-servers