/counter-strike-docker

Docker image for Counter Strike 1.6 Dedicated Server

Primary LanguageMakefileApache License 2.0Apache-2.0

Build Status License

Docker image for Counter Strike 1.6 Dedicated Server

Start the server

Minimum properties setup

docker run -d -p 26900:26900/udp -p 27020:27020/udp -p 27015:27015/udp -p 27015:27015 -e ADMIN_STEAM=0:1:1234566 --name cs cs16ds/server:latest

All properties setup

docker run -d -p 26900:26900/udp -p 27020:27020/udp -p 27015:27015/udp -p 27015:27015 -e MAXPLAYERS=32 -e START_MAP=de_dust2 -e SERVER_NAME="My Server Name" -e START_MONEY=16000 -e BUY_TIME=0.25 -e FRIENDLY_FIRE=1 -e ADMIN_STEAM=0:1:1234566 --name cs cs16ds/server:latest +log

Propetries

Name Description Default Value
MAXPLAYERS The maximum number of players 32
START_MAP The initial map de_dust2
SERVER_NAME The server name Counter-Strike 1.6 Server
START_MONEY The initial money 800
BUY_TIME The allowed time to buy items in each round (minutes) 0.25
FRIENDLY_FIRE Enable or disable the friendly fire. (off: 0, on: 1) 1
SERVER_PASSWORD The server password. (Empty for no server password) None
RCON_PASSWORD The rcon password. (Empty for no rcon password) None
RESTART_ON_FAIL TBD TBD
ADMIN_STEAM TBD - amx mod related TBD

Stop the server

docker stop cs

Start existing (stopped) server

docker start cs

Remove the server

docker rm cs

Attributions

This project is based on counter-strike-docker, developed by Artem Panchenko.

Changes from original project

  • Changed the name of the build.
  • Added new maps.
  • Added new parameters in run script.