Sign inSign up

snicolet/kf-server

By snicolet

Updated over 2 years ago

Killing floor server based on ubuntu distro

Image
3

4.8K

snicolet/kf-server repository overview

Build args:

VariableUtility
STEAM_GUARDsteam guard code (from your phone)

Environements variables

VariableUtility
KF_SERVER_NAMEset the server name (in the server list)
KF_LOGINset the admin password (ingame and in the web ui)
KF_PASSset the admin password
KF_PLAYPASSset a passowrd to let players to come on the server, don't set for none
KF_GAMELENgame len: 0: sort / 1: medium / 2: long / 3: custom
KF_DIFFICULTYset the game difficulty
KF_MAILadmin email address
KF_SLOTShow many players can join (should be 6)
KF_MUTATORSwhat mutators to enable by default, separate them with a comma (optional)

Build the image:

Dependencies

You need to have buildkit installed, on arch it's done by

sudo pacman -S extra/docker-buildx

Build

export STEAM_LOGIN=...
export STEAM_PASS=

# run the image's build
STEAM_GUARD=xxxxx docker buildx build --secret id=STEAM_LOGIN --secret id=STEAM_PASS --secret id=STEAM_GUARD -t snicolet/kf-server .

# clean the env or just close the terminal
unset STEAM_PASS
unset STEAM_LOGIN

Useful readings

Run the server:

docker run -d --name kf -p 8075:8075 -p 7707:7707/udp -p 7708:7708/udp -p 7717:7717/udp -p 20560:20560/udp -p 28852:28852 -e KF_LOGIN=login -e KF_PASS=adminpass -e KF_GAMELEN=2 -e KF_SERVER_NAME=KF_Server -e KF_SLOTS=6 -e KF_MUTATORS=MutKFAntiBlocker.MutKFAntiBlocker,KFNoDramaMut.KFNoDramaMut,KFPatHPLeft.MutPatHPLeft,MutKillMessage.MutKillMessage snicolet/kf-server

Or using docker compose:

version: "3.8"
services:
  kf:
    image: snicolet/kf-server
    container_name: kf
    ports:
    - 8075:8075
    - 7707:7707/udp
    - 7708:7708/udp
    - 7717:7717/udp
    - 20560:20560/udp
    - 28852:28852
    - 28852:28852/udp
    environment:
    - KF_LOGIN=admin
    - KF_PASS=adminpass
    - KF_GAMELEN=2
    - KF_DIFFICULTY=7
    - KF_SERVER_NAME=Pepper
    - KF_SLOTS=6
    - KF_MUTATORS=MutKFAntiBlocker.MutKFAntiBlocker,KFNoDramaMut.KFNoDramaMut,KFPatHPLeft.MutPatHPLeft,MutKillMessage.MutKillMessage
    restart: unless-stopped

then

docker compose up -d

Tag summary

Content type

Image

Digest

sha256:d0a00f851

Size

1 GB

Last updated

over 2 years ago

docker pull snicolet/kf-server