Giter Club home page Giter Club logo

docker-steam-css's Introduction

Docker Image for Counter-Strike Source

Docker Stars Docker Pulls

This docker image provides a preconfigured Counter-Strike Source server with several plugins.

The Docker image in the Docker Hub can be found here.

List of used plugins:

Start the container

The docker container requires some ports to be exposed, therefore a more advanced run command is required.

docker run -d --name css-server-27015 \
           -p 27015:27015 -p 27015:27015/udp -p 1200:1200 \
           -p 27005:27005/udp -p 27020:27020/udp -p 26901:26901/udp \
           -e RCON_PASSWORD=mypassword \
           foxylion/steam-css

Restart the container

Due to the linux kernel is caching the udp connection state you have to manually clean the udp connection tracking, before you can immediately reconenct to the server. More details can be found here.

apt-get install conntrack
conntrack -D -p udp

Available Environment Variables

  • RCON_PASSWORD is your personal RCON password to authenticate as the administrator
  • CSS_HOSTNAME is your custom server name shown in the server list
  • CSS_PASSWORD is the password a user may require to connect, can be left empty

Expose you maps and sounds as a htdocs directory

You can mount a directory where the css server should copy all currently installed maps and sounds so you can use the sv_downloadurl option.

- v /path/to/target:/home/steam/htdocs

Other files to override

Custom mapcycle.txt

-v /path/to/mapcycle.txt:/home/steam/css/cstrike/cfg/mapcycle.txt

SourceMod admins_simple.ini

To control the SourceMod admins on the server you can use your own admins.cfg or admins_simple.ini file.

-v /path/to/admins_simple.ini:/home/steam/css/cstrike/addons/sourcemod/configs/admins_simple.ini

Modified server.cfg

The default server.cfg can also be overriden, but you can also only override some specific settings, therefore use the following pattern

-v /path/to/my-server.cfg:/home/steam/css/cstrike/cfg/my-server.cfg

Other configuration files

Any other configuration file can also be overriden using the same method as above, you must just locate the right file in the docker container. The folder structure is the same as when you install the server locally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.