/Squad

Dockerfile for automated build of a Squad gameserver: https://hub.docker.com/r/cm2network/squad/

Primary LanguageDockerfileMIT LicenseMIT

Docker Build Status Docker Stars Docker Pulls

Supported tags and respective Dockerfile links

What is Squad?

Squad is a tactical FPS that provides authentic combat experiences through teamwork, communication, and gameplay. It seeks to bridge the large gap between arcade shooter and military simulation. Large scale, combined arms combat, base building, and a great integrated VoIP system.
This Docker image contains the dedicated server of the game.

Squad

logo

How to use this image

Hosting a simple game server

Running on the host interface (recommended):

$ docker run -d --net=host --name=squad-dedicated cm2network/squad

Running as a normal docker container:

$ docker run -d -p 7787:7787/udp -p 27165:27165/tcp -p 27165:27165/udp -p 21114:21114/tcp -p 21114:21114/udp -e PORT=7787 -e QUERYPORT=27165 -e RCONPORT=21115 --name=squad-server cm2network/squad

Running multiple instances (iterate PORT, QUERYPORT and RCONPORT):

$ docker run -d --net=host -e PORT=7788 -e QUERYPORT=27166 -e RCONPORT=21115 --name=squad-dedicated2 cm2network/squad

It's also recommended using "--cpuset-cpus=" to limit the game server to a specific core & thread.
The container will automatically update the game on startup, so if there is a game update just restart the container.

Configuration

Environment Variables

Feel free to overwrite these environment variables, using -e (--env):

PORT=7787
QUERYPORT=27165
RCONPORT=21114
FIXEDMAXPLAYERS=80
RANDOM=NONE

Config

The config files can be found under /home/steam/squad-dedicated/SquadGame/ServerConfig/

If you want to learn more about configuring a Squad server check this documentation.