You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
3.5 KiB
YAML

services:
cs2-server:
image: joedwards32/cs2
container_name: cs2-dedicated
environment:
# Server configuration
- STEAMAPPVALIDATE=0 # (0 - no validation, 1 - enable validation)
- CS2_SERVERNAME=garagenum-srv:CSGO # (Set the visible name for your private server)
- CS2_CHEATS=0 # (0 - disable cheats, 1 - enable cheats)
- CS2_PORT=27015 # (CS2 server listen port tcp_udp)
- CS2_SERVER_HIBERNATE=0 # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
- CS2_RCON_PORT # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
- CS2_IP="" #(CS2 server listening IP address, 0.0.0.0 - all IP addresses on the local machine, empty - IP identified automatically)
- CS2_LAN=1 # (0 - LAN mode disabled, 1 - LAN Mode enabled)
#- CS2_RCONPW=csgo92GAnum! # (RCON password)
#- CS2_PW=fragfragfrag!02 # (CS2 server password)
- CS2_MAXPLAYERS=20 # (Max players)
- CS2_ADDITIONAL_ARGS # (Optional additional arguments to pass into cs2)
- CS2_CFG_URL # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
# Game modes
- CS2_GAMEALIAS # (Game type, e.g. casual, competitive, deathmatch. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
- CS2_GAMETYPE=0 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
- CS2_GAMEMODE=1 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
- CS2_MAPGROUP=mg_active # (Map pool)
- CS2_STARTMAP=de_inferno # (Start map)
# Bots
- CS2_BOT_DIFFICULTY="1" # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
- CS2_BOT_QUOTA="4" # (Number of bots)
- CS2_BOT_QUOTA_MODE="competitive" # (fill, competitive)
# TV
- TV_AUTORECORD=0 # Automatically records all games as CSTV demos: 0=off, 1=on.
- TV_ENABLE=0 # Activates CSTV on server: 0=off, 1=on.
- TV_PORT=27020 # Host SourceTV port
#- TV_PW=tvGA92! # CSTV password for clients
#- TV_RELAY_PW=tvGA92! # CSTV password for relay proxies
- TV_MAXRATE=0 # World snapshots to broadcast per second. Affects camera tickrate.
- TV_DELAY=0 # CSTV broadcast delay in seconds
# Logs
- CS2_LOG=on # 'on'/'off'
- CS2_LOG_MONEY=0 # Turns money logging on/off: (0=off, 1=on)
- CS2_LOG_DETAIL=0 # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
- CS2_LOG_ITEMS=0 # Turns item logging on/off: (0=off, 1=on)
volumes:
- cs2:/home/steam/cs2-dedicated/ # Persistent data volume mount point inside container
ports:
- "27015:27015/tcp" # TCP
- "27015:27015/udp" # UDP
- "27020:27020/udp" # UDP
stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
volumes:
cs2: