Fight on multiple fronts in Holdfast: Nations At War - A competitive multiplayer first and third person shooter set during the great Napoleonic Era. Charge into battle with over 150 players per server!
Running on the host interface (recommended):
$ docker run -d --net=host --name=holdfastnaw-dedicated cm2network/holdfastnawRunning using a bind mount for data persistence on container recreation:
$ mkdir -p $(pwd)/holdfastnaw-data
$ chmod 777 $(pwd)/holdfastnaw-data # Makes sure the directory is writeable by the unprivileged container user
$ docker run -d --net=host -v $(pwd)/holdfastnaw-data:/home/steam/holdfastnaw-dedicated/ --name=holdfastnaw-dedicated cm2network/holdfastnawRunning multiple instances:
$ docker run -d --net=host --name=holdfastnaw-dedicated2 cm2network/holdfastnawIt's also recommended to use "--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.
Feel free to overwrite these environment variables, using -e (--env):
SERVER_PORT=20100 (UDP)
STEAM_QUERY_PORT=27000 (UDP, Optional: Legacy A2S Query port, Pass 0 to disable)
SERVER_REGION="europe"
SERVER_ADMIN_PASSWORD="defaultAdminPWReplace"
SERVER_NAME="My Server"
SERVER_NETWORK_BROADCAST_MODE="Standard" (Standard = Up to 250 players, Competitive = Higher tickrate - Limited to 64 players per server)
SERVER_WELCOME_MESSAGE="The Server Welcome Message"
SERVER_INTRO_TITLE="Welcome!"
SERVER_INTRO_BODY="This is a server fresh of the assembly line"
SERVER_CONFIG_PATH="serverconfig_default.txt"
SERVER_LOG_PATH="logs_output/outputlog_server.txt"
SERVER_LOG_ARCHIVE_PATH="logs_archive/"
STEAMCMD_UPDATE_ARGS="" (Gets appended here: +app_update [appid] [STEAMCMD_UPDATE_ARGS]; Example: "validate")
ADDITIONAL_ARGS="" (Pass additional arguments to server binary. Make sure to escape correctly!)$ docker exec -it holdfastnaw-dedicated nano /home/steam/holdfastnaw-dedicated/serverconfig_default.txtIf you want to learn more about configuring a Holdfast: Nations At War server check this documentation.
This is the defacto image. A bare-minimum Holdfast: Nations At War dedicated server containing no 3rd party plugins. The game server files are downloaded (or updated) on container start, increasing start-up time. Ideal for static hosting in volumes or bind-mounts.
Specialized version of holdfastnaw:on-demand. The game server files are pre-packaged within this image, trading storage for faster start-up times. Note: The game server files are still updated on container start. Ideal for container orchestration tools (Kubernetes, Docker Swarm, etc.).
