Sign inSign up

fpetros/kf2-server

By fpetros

Updated over 3 years ago

simple kf2 server test

Image
0

1.7K

fpetros/kf2-server repository overview

Killing Floor 2 Docker Server

Basic Usage

Docker Run
docker run -p 8888:8888/udp -p 27015/udp -p 8181:8181 -p 20560:20560/udp -e KF_ADMIN=Admin -e KF_ADMIN_PASSWORD=Admin -e KF_PORT=8888 -e KF_WEBADMIN_PORT=8181 -e KF_GAME_PASSWORD=123123 -e KF_WEBADMIN=True -e KF_DIFFICULTY=2 fpetros/kf2-server:latest
Docker Compose
version: '3'

services:
  vanilla-0:
    image: fpetros/kf2-server:latest
    ports:
      - '7777:7777/udp'
      - '27015:27015/udp'
      - '8080:8080/tcp'
      - '20560:20560/tcp'
    restart: unless-stopped
    environment:
      - KF_WEBADMIN=True
      - KF_ADMIN=Admin
      - KF_ADMIN_PASSWORD=admin123123
      - KF_GAME_PASSWORD=123123
      - KF_PORT=7777
      - KF_QUERY_PORT=27015
      - KF_WEBADMIN_PORT=8080
      - KF_MODS=123123,123124,123125
    volumes:
      - kf2-server:/kf2-server/steam-server
    tty: true
    stdin_open: true
volumes:
  kf2-server:

Environment Variables

Customization

VariableDescriptionPossible ValuesDefault
KF_MODSMod Id List(Steam Workshop), separated by ',' How to get Workshop ID123123,123124,1231235,123456,1234567,123458

Arguments

VariableDescriptionPossible ValuesDefault
KF_WEBADMINEnable or Disable WebAdminTrue or FalseFalse
KF_MAPStarting MapKF-Airship KF-AshwoodAsylum KF-BarmwichTown KF-Biolapse KF-BioticsLab KF-BlackForest KF-BurningParis KF-CarillonHamlet KF-Catacombs KF-ContainmentStation KF-Default KF-Desolation KF-DieSector KF-Dystopia2029 KF-Elysium KF-EvacuationPoint KF-Farmhouse KF-HellmarkStation KF-HostileGrounds KF-InfernalRealm KF-KrampusLair KF-Lockdown KF-MonsterBall KF-Moonbase KF-Netherhold KF-Nightmare KF-Nuked KF-Outpost KF-PowerCore_Holdout KF-Prison KF-Rig KF-Sanitarium KF-SantasWorkshop KF-ShoppingSpree KF-Spillway KF-SteamFortress KF-TheDescent KF-TragicKingdom KF-VolterManor KF-ZedLandingKF-BurningParis
KF_ADMINUsername for WebAdminAny Alpha numeric character combinations
KF_ADMIN_PASSWORDPassword for WebAdminAny Alpha numeric character combinations
KF_MAX_PLAYERSMaximum amount of players in the serverAny integer Number6
KF_DIFFICULTYServer difficulty0 = Normal, 1 = Hard, 2 = Suicidal or 3 = Hell on Earth0

Switches

VariableDescriptionPossible ValuesDefault
KF_PORTGame PortAny integer Number7777
KF_QUERY_PORTSteam Query PortAny integer Number27015
KF_WEBADMIN_PORTPort that WebAdmin will be acessibleAny integer Number27015
KF_MULTIHOMEIf a server machine can resolve to multiple IP's, this command can tie a server to a specific IP on that machine.Server IP Adress
KF_PREFERRED_PROCESSORThis will tie a server process to a single core/thread on the hosting machine.Any integer Number
KF_CONFIG_SUB_DIRCreates and reads settings from a sub directory under ./KFGame/Config which allows you to configure .INI settings on a per server basis.Any Alpha numeric character combinations

How to get Workshop ID

How to get

Tag summary

Content type

Image

Digest

sha256:63b50905a

Size

247.2 MB

Last updated

over 3 years ago

docker pull fpetros/kf2-server