Killing floor server based on ubuntu distro
4.8K
| Variable | Utility |
|---|---|
| STEAM_GUARD | steam guard code (from your phone) |
| Variable | Utility |
|---|---|
| KF_SERVER_NAME | set the server name (in the server list) |
| KF_LOGIN | set the admin password (ingame and in the web ui) |
| KF_PASS | set the admin password |
| KF_PLAYPASS | set a passowrd to let players to come on the server, don't set for none |
| KF_GAMELEN | game len: 0: sort / 1: medium / 2: long / 3: custom |
| KF_DIFFICULTY | set the game difficulty |
| KF_MAIL | admin email address |
| KF_SLOTS | how many players can join (should be 6) |
| KF_MUTATORS | what mutators to enable by default, separate them with a comma (optional) |
You need to have buildkit installed, on arch it's done by
sudo pacman -S extra/docker-buildx
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
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
Content type
Image
Digest
sha256:d0a00f851…
Size
1 GB
Last updated
over 2 years ago
docker pull snicolet/kf-server