Browse Source

init

tags/v1.0.0^0
Robin Thoni 7 years ago
commit
1d6da2d9eb
5 changed files with 31 additions and 0 deletions
  1. 1
    0
      .gitignore
  2. 16
    0
      docker-compose.yml
  3. 0
    0
      env
  4. 9
    0
      kf2-server/Dockerfile
  5. 5
    0
      kf2-server/run.sh

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+data

+ 16
- 0
docker-compose.yml View File

@@ -0,0 +1,16 @@
1
+version: '2'
2
+
3
+services:
4
+    kf2-server:
5
+        build: ./kf2-server
6
+        container_name: kf2-server
7
+#        restart: unless-stopped
8
+        ports:
9
+            - "0.0.0.0:7777:7777/udp"
10
+            - "0.0.0.0:27015:27015/udp"
11
+            - "127.0.0.1:35010:8080/tcp"
12
+            - "0.0.0.0:20560:20560/udp"
13
+        volumes:
14
+            - ./data/kf2-server/server:/steamcmd/kf2-server
15
+        env_file:
16
+            - env

+ 0
- 0
env View File


+ 9
- 0
kf2-server/Dockerfile View File

@@ -0,0 +1,9 @@
1
+FROM robinthoni/steamcmd:1.0.0
2
+
3
+MAINTAINER Robin Thoni <robin@rthoni.com>
4
+
5
+COPY ./run.sh /
6
+
7
+EXPOSE 7777/udp 27015/udp 8080/tcp 20560/udp
8
+
9
+CMD ["/run.sh"]

+ 5
- 0
kf2-server/run.sh View File

@@ -0,0 +1,5 @@
1
+#! /usr/bin/env sh
2
+
3
+cd /steamcmd &&
4
+./steamcmd.sh +login anonymous +force_install_dir ./kf2-server +app_update 232130 +exit &&
5
+./kf2-server/Binaries/Win64/KFGameSteamServer.bin.x86_64 kf-bioticslab

Loading…
Cancel
Save