Skip to content

tractr/counter-strike-1.6-servers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for Counter Strike 1.6 Dedicated Server

Start the server

Minimum properties setup

docker run -d -p 27015:27015/udp -p 27015:27015 -p 80:80 --name cs tractr/counter-strike-1.6-servers:latest

All properties setup

docker run -d \
  -p 27015:27015/udp \
  -p 27015:27015 \
  -p 80:80 \
  -e DOWNLOAD_URL="http://192.168.0.100:80/cstrike/" \
  -e MAXPLAYERS=32 \
  -e BOTS_FILL=6 \
  -e MAP=de_dust2 \
  -e SERVER_NAME="My Server Name" \
  --name cs \
  tractr/counter-strike-1.6-servers:latest

Propetries

Name Description Default Value
PORT The gaming port 27015
SV_LAN Restrict to LAN 0
DOWNLOAD_URL URL where maps and assets are available http://127.0.0.1/cstrike/
MAXPLAYERS The maximum number of players 16
BOTS_FILL Add bots to reach a min number of players 0
MAP The initial map de_dust2
SERVER_NAME The server name Counter-Strike 1.6 Server

Build the image

docker build . --tag tractr/counter-strike-1.6-servers:latest --target classic
docker build . --tag tractr/counter-strike-1.6-servers:melee --target melee

Build and push all images

docker build . --tag tractr/counter-strike-1.6-servers:latest --target classic && \
docker push tractr/counter-strike-1.6-servers:latest && \
docker build . --tag tractr/counter-strike-1.6-servers:classic --target classic && \
docker push tractr/counter-strike-1.6-servers:classic && \
docker build . --tag tractr/counter-strike-1.6-servers:melee --target melee && \
docker push tractr/counter-strike-1.6-servers:melee && \
docker build . --tag tractr/counter-strike-1.6-servers:hsonly --target hsonly && \
docker push tractr/counter-strike-1.6-servers:hsonly && \
docker build . --tag tractr/counter-strike-1.6-servers:deathmatch-team --target deathmatch-team && \
docker push tractr/counter-strike-1.6-servers:deathmatch-team && \
docker build . --tag tractr/counter-strike-1.6-servers:deathmatch-ffa --target deathmatch-ffa && \
docker push tractr/counter-strike-1.6-servers:deathmatch-ffa

Attributions

This project is based on:

Changes from original project

  • Add ability to download maps and assets
  • Added new maps.
  • Added new parameters in run script.

Links

List of available cvars: http://txdv.github.io/cstrike-cvarlist/

About

Docker images to server Counter Strike 1.6 with mods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published