/counter-strike-docker

Docker image for Counter Strike 1.6 Dedicated Server

Primary LanguagePawnApache License 2.0Apache-2.0

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 internetaddict/cstrike16:basic

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 internetaddict/cstrike16:basic +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 String None
ADMIN_STEAM Your STEAM_ID None

Stop the server

docker stop cs

Start existing (stopped) server

docker start cs

Remove the server

docker rm cs

or with docker-compose:

docker-compose up -d 
docker-compose down

Attributions

This project is based on counter-strike-docker, developed by Artem Panchenko. This project is a fork of counter-strike-docker, by Dimitris Touzloudis

Changes from original project

  • Changed the name of the build.
  • Added new maps.
  • Added new parameters in run script.
  • Optimized Dockerfile
  • Changed HLDS user from root to unprivileged one
  • Added few amxx's plugins for Qaulity of Life purposes
  • Added docker-compose.yml file with example environment configuration