cm2network/holdfastnaw

Sponsored OSS

By CM2.Network

Updated 6 months ago

Holdfast:NaW dedicated server and SteamCMD

Image
Developer tools
3

10K+

cm2network/holdfastnaw repository overview

Docker Cloud Build Status Docker Stars Docker Pulls Discord

What is Holdfast: Nations At War ?

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!

logo

How to use this image

Hosting a simple game server

Running on the host interface (recommended):

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

Running 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/holdfastnaw

Running multiple instances:

$ docker run -d --net=host --name=holdfastnaw-dedicated2 cm2network/holdfastnaw

It'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.

Configuration

Environment Variables

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!)

Config

$ docker exec -it holdfastnaw-dedicated nano /home/steam/holdfastnaw-dedicated/serverconfig_default.txt

If you want to learn more about configuring a Holdfast: Nations At War server check this documentation.

Image Variants:

holdfastnaw:latest, holdfastnaw:on-demand

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.

holdfastnaw:full

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

Contributors

Contributors Display

Tag summary

Content type

Image

Digest

sha256:323866b3b

Size

131.9 MB

Last updated

6 months ago

docker pull cm2network/holdfastnaw:on-demand

This week's pulls

Pulls:

791

Last week