csgo-server:
container_name: csgo-server
image: clefss/csgo-server
restart: "unless-stopped"
volumes:
- $(pwd)/steam:/home/steam/steamapps
ports:
- 27015:27015/tcp
- 27015:27015/udp
- 27020:27020/udp
environment:
GSLT: XXXXXXXXXXXXXXX
API_AUTHORIZATION_KEY: XXXXXXXXXXXXXX
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
The configuration files will be stored in /home/steam/steamapps
persistently.
CONNECT: 27015
GOTV: 27020
Server Time Zone.
Example: TZ: Europe/Lisbon
Default: UTC
Your WAN IP address.
Example: IP: 192.168.1.100
Default: 0.0.0.0
Game Server Login Token. http://steamcommunity.com/dev/managegameservers
Anonymous connection will be deprecated in the near future. Therefore it is highly recommended to generate a Game Server Login Token.
Example: GSLT: XXXXXXXXXXXXXX
Steam Web API Key. http://steamcommunity.com/dev/apikey
To download maps from the workshop, your server needs access to the steam web api.
Example: API_AUTHORIZATION_KEY: XXXXXXXXXXXXXX
A collection id from the Maps Workshop. The API_AUTHORIZATION_KEY is required.
https://steamcommunity.com/sharedfiles/filedetails/?id=2056673593
Example: WORKSHOP_COLLECTION_ID: 2056673593
Default: 2056673593
A map id in the selected collection (WORKSHOP_COLLECTION_ID). The API_AUTHORIZATION_KEY is required.
https://steamcommunity.com/sharedfiles/filedetails/?id=125438255
Example: WORKSHOP_START_MAP: 125438255
Default: 125438255
Maximum players that can connect.
Example: MAX_PLAYERS: 15
Default: 11
The tickrate that your server will operate at.
Example: TICKRATE: 64
Default: 128
Custom command line extra parameters.
Example: EXTRA_PARAMS: "+sv_pure 0 +game_type 0 +game_mode 2"
Default: +sv_pure 0 +game_type 0 +game_mode 1 +sv_region 3 +mapgroup mg_active +map de_dust2 -secure -nobreakpad