Sign inSign up

rouhim/killing-floor-2-server

By rouhim

•Updated 2 days ago

Image
0

7.1K

rouhim/killing-floor-2-server repository overview

Pipeline Pipeline Docker Hub pulls Docker Hub size trivy os-arch Donate me

This repository provides a safe⁠ container image for the Killing Floor 2⁠ game server. It is designed to be used with Docker Compose, making it easy to set up and manage your game server environment.

⁠Requirements

⁠Installation

Once Docker and Docker Compose are installed, clone this repository to your local machine:

git clone https://github.com/RouHim/killing-floor-2-container-image.git
cd killing-floor-2-container-image

Before starting the server, create the required folder structure, and adjust the permissions:

mkdir data/ 
chmod 777 data/

The chmod command is recommended to avoid permission issues. The main reason is, that the user in the container, most likely differs from the user on the host.

⁠Usage

To start the Killing Floor 2 server, navigate to the cloned repository's directory and use Docker Compose:

docker-compose pull
docker-compose up -d

This will pull the latest image and start the server in detached mode.

When starting the server for the first time:

  • The config files and folders will be automatically created in the config/ folder.
  • The server will download the latest version of the game from Steam to the data/ folder.

You have to restart after the first start.

To restart the server after making changes to the configuration, use the following command:

docker-compose restart

In order to check the server logs, use the following command:

docker-compose logs -f

⁠Update

To update the server, just restart the container. The server checks for updates and validates on every boot per default.

To skip update and validation of the server files on every boot, set the FAST_BOOT env variable to true.

⁠Configuration

The server configuration does not differ from the official server configuration. Just follow an existing server configuration guide like this⁠.

The data folder contains the game server data. Any modification to the server configuration should be done when the server is stopped. Otherwise, the changes will be most likely overwritten.

Configuration via environment variables is also possible:

NameDescriptionExampleDefault value
KF2_SERVER_NAMEServer nameMy ServerKilling Floor 2 Server
KF2_SERVER_SUBSCRIBED_WORKSHOP_ITEMSWorkshop items to subscribe to123456789
KF2_WEB_ADMIN_ENABLEDEnable web admintruefalse
KF2_ADMIN_PASSWORDPassword for admin login and web admin loginPassword
KF2_DISABLE_TEAM_COLLISIONDisable team collisiontruefalse
KF2_USED_FOR_TAKEOVERUsed for takeovertruefalse
KF2_BANNER_LINKBanner linkhttps://example.com/banner.jpg
KF2_SERVER_MOTDServer message of the dayWelcome to my server!
KF2_CLAN_MOTTOClan mottoMy clan motto
KF2_NET_SERVER_MAX_TICK_RATEMaximum tick rate3030
KF2_MAX_INTERNET_CLIENT_RATEMaximum internet client rate3030
FAST_BOOTIf set to true, the server will not be installed / updated / validated on starttruefalse

⁠Resources

Tag summary

Content type

Image

Digest

sha256:3ac00a197…

Size

120.5 MB

Last updated

2 days ago

docker pull rouhim/killing-floor-2-server