CS:GO Dedicated Server containing MetaMod and SourceMod, running in a Docker container.
Note that the port always has to be given, otherwise it won't be accessible from outside. For further information refer to the Docker user guide.
docker run -it \
-p 27015:27015/udp \
christianharke/csgoserver
docker run -it \
-p 27015:27015/udp \
-p 27015:27015 \
christianharke/csgoserver \
+rcon_password [RCON password]
docker run -it \
-p 27015:27015/udp \
-p 27020:27020 \
christianharke/csgoserver \
+tv_enable 1
For further information refer to the Source-TV section of the Valve Wiki
Variable | Value | Default |
---|---|---|
maxplayers | [# of players] |
- |
tickrate | [# ticks per second] |
128 |
##### Change maximum number of players
docker run -it \
-e maxplayers=4 \
-p 27015:27015/udp \
christianharke/csgoserver
Variable | Value | Default |
---|---|---|
log | [on|off] |
on |
Additionally, you can add commands to be executed directly after start.
For more details refer to this inofficial but rather complete list of CS:GO Console Commands
docker run -it \
-p 27015:27015/udp \
christianharke/csgoserver \
+map de_dust2
docker run -it \
-p 27015:27015/udp \
christianharke/csgoserver \
+game_mode 2 \
+game_type 1
Available modes/types:
Mode game_mode game_type Classic Casual 0 0 Classic Competitive 0 1 Arms Race 1 0 Demolition 1 1 Deathmatch 2 1