Dedicated Servers
You can setup dedicated servers in three different ways:
- Using a game server node via the panel. Learn more game server nodes
- Using the plugin which will require manual upload of the plugin and configuration of the game server. Learn more about using the plugin
- Using the container which will require a Docker installation and a Docker Compose file. Learn more about using game server container
The 5Stack Game Server Plugin ships for two CS2 frameworks. Pick one, then download its latest release and follow that framework's install guide:
- SwiftlyS2 (default), Releases · SwiftlyS2 docs
- CounterStrikeSharp: Releases · CounterStrikeSharp docs
See Game Plugin Runtimes for how the two differ.
WARNING
The server must be started with -usercon, and -ip 0.0.0.0 to allow remote rcon
Using the Container
Here's an example Docker Compose file for running a Counter-Strike dedicated server. Both runtime images take the same environment variables and scripts, so swap swiftly-game-server for game-server if you want CounterStrikeSharp instead:
version: '3.8'
services:
update-server:
image: ghcr.io/5stackgg/swiftly-game-server:latest
container_name: update-server
command: ["/opt/scripts/update.sh"]
volumes:
- /opt/5stack/steamcmd:/serverdata/steamcmd
- /opt/5stack/serverfiles:/serverdata/serverfiles
restart: no
dev-cs-server:
image: ghcr.io/5stackgg/swiftly-game-server:latest
container_name: dev-cs-server
environment:
- DEV_SERVER=true
- SERVER_PORT=27015
- TV_PORT=27020
- EXTRA_GAME_PARAMS=-maxplayers 13
- ALLOW_BOTS=true
- WS_DOMAIN=wss://ws.5stack.gg
- API_DOMAIN=https://api.5stack.gg
- DEMOS_DOMAIN=https://demos.5stack.gg
- SERVER_ID=<your-server-id>
- SERVER_API_PASSWORD=<your-server-api-password>
ports:
- "27015:27015/tcp"
- "27015:27015/udp"
- "27020:27020/tcp"
- "27020:27020/udp"
volumes:
- /opt/5stack/steamcmd:/serverdata/steamcmd
- /opt/5stack/serverfiles:/serverdata/serverfiles
- /opt/5stack/demos:/opt/demos
deploy:
resources:
limits:
memory: 10GiAfter a Counter-Strike update. You will need to run docker-compose run --rm update-server to download and install the latest version of the game.