Skip to content

Dedicated Servers

You can setup dedicated servers in two different ways:

  1. Using the plugin which will require manual upload of the plugin and configuration of the game server. Learn more about using the plugin
  2. Using the container which will require a Docker installation and a Docker Compose file. Learn more about using game server container

Using the Plugin

Download the latest release of the 5Stack Game Server Plugin from the Releases Page.

Next, follow the instructions for setting up CounterStrikeSharp to install the plugin on your dedicated server.

Using the Container

Here's an example Docker Compose file for running a Counter-Strike dedicated server:

version: '3.8'

services:
  update-server:
    image: ghcr.io/5stackgg/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/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: 10Gi

After 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.