Sign inSign up

anujdatar/cs-16-server

By anujdatar

•Updated over 6 years ago

Counter Strike 1.6 Dedicated Server in a docker

Image
0

377

anujdatar/cs-16-server repository overview

⁠CS_16_docker

Counter Strike 1.6 server using docker

Probably works best if you clone the git repo anyway and run everything through there. Image only contains basic ubuntu with steamcmd. First start of container will install the Counter Strike Dedicated Server. Done in order to minimize docker image size.

Container start also starts a HLDS CStrike server. based on the default server settings or any changes you may have made in the ./store folder cfgs.

⁠Usage

docker pull anujdatar/cs-16-server

docker run -dit --name <container-name> -v $(pwd)/store:/home/steam/store/ -v $(pwd)/misc:/home/steam/misc -p 27015:27015 -p 27015:27015/udp anujdatar/cs-16-server

If you wish to edit default server settings: - ./store/constants.sh -> starting map, server name, passwords - ./store/cfgs/*.cfg -> banned players, ips, other server settings

Then start docker container

⁠Building image manually

  1. Clone github repository⁠

  2. Build docker image

    docker build -t <image-name/tag> .
    
  3. Edit Server configs -> the store folder

    • ./store/constants.sh -> starting map, server name, passwords
    • ./store/cfgs/*.cfg -> banned players, ips, other server settings
  4. Run docker container

    docker run -dit --name <container-name> -v $(pwd)/store:/home/steam/store/ -v $(pwd)/misc:/home/steam/misc -p 27015:27015 -p 27015:27015/udp <image-name/tag>
    
  5. Container boots to bash. you can now run the server management script

    cs_server start
    or
    cs_server stop
    or
    cs_server restart
    or
    cs_server update
    
  6. Adding more addons or maps -> the misc folder Copy archives of the stuff to ./misc folder which will be a mounted volume in the container. From here you can use the install_addon script to extract and copy addon/mod/map to desired location. You can also just copy files to the misc folder and copy them manually to the desired paths. You can also copy any customs scripts here whatever.

Tag summary

Content type

Image

Digest

Size

136.3 MB

Last updated

over 6 years ago

docker pull anujdatar/cs-16-server