run docker-compose w/ env variables MYSQL_USER=root MYSQL_PASSWD=password MYSQL_DB=cs docker-compose up -d
run MYSQL Docker: docker run -d -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=cs -p 3306:3306 mysql:5.6
Docker container for CS 1.6 LAN server. Makes running CS 1.6 lan server extremely easy with just a few commands on any linux box.
HLDS with cstrike (installed using official steamcmd). Plus: Metamod, AMXmod and Dproto
Connect to the server in CS client terminal:
connect $server_ip; password secret
- Run with docker-compose (simplest):
cd /opt/my/server/dir/
curl -o ./docker-compose.yaml https://github.com/kran0/hlds-docker/raw/master/docker-compose.yaml
docker-compose up -d
# stop with:
# docker-compose down
- Run without docker-compose:
docker run -d --name cstrike\
-p 26900:26900/udp\
-p 27020:27020/udp\
-p 27015:27015/udp\
-p 27015:27015\
-e GAME="cstrike"\
-e MAXPLAYERS="8"\
-e START_MAP="de_dust2"\
-e SERVER_NAME="Counter-Strike 1.6 Server"\
-e START_MONEY="800"\
-e BUY_TIME="0.25"\
-e FRIENDLY_FIRE="1"\
-e RESTART_ON_FAIL="1"\
-e SERVER_PASSWORD="secret"\
-e RCON_PASSWORD="supersecret"\
kran0/hlds:latest
Please watch my Automated builds.
Repository:Tag | Build description |
---|---|
kran0/hlds:latest | latest stable |
kran0/hlds:tag | Tag releases |
Build with command: "docker build -t kran0/hlds:latest .
".
You need Docker 17.05 or higher on the daemon and client to use multistage builds.