Merge pull request #26 from dtandersen/server-id

server-id / banlist / docker-compose
This commit is contained in:
David Andersen 2017-05-18 08:55:49 -07:00 committed by GitHub
commit 2b1115c19a
6 changed files with 11 additions and 13 deletions

View File

@ -1 +0,0 @@
sudo docker build --no-cache -t factorio .

View File

@ -1 +0,0 @@
sudo rm -rf /tmp/factorio

8
0.15/docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: '2'
services:
factorio:
build: .
ports:
- "34197:34197"
volumes:
- /tmp/factorio:/factorio

View File

@ -32,5 +32,7 @@ exec /opt/factorio/bin/x64/factorio \
--start-server-load-latest \
--server-settings $CONFIG/server-settings.json \
--server-whitelist $CONFIG/server-whitelist.json \
--server-banlist $CONFIG/server-banlist.json \
--rcon-port 27015 \
--rcon-password "$(cat $CONFIG/rconpw)"
--rcon-password "$(cat $CONFIG/rconpw)" \
--server-id /factorio/config/server-id.json

View File

@ -1,5 +0,0 @@
sudo docker run --rm -it \
-v /tmp/factorio:/factorio \
--name factorio \
factorio "$@"
find /tmp/factorio -type f

View File

@ -1,5 +0,0 @@
sudo docker run -d -p 34197:34197/udp -p 27015:27015/tcp \
-v factorio:/factorio \
--name factorio \
--restart=always \
factorio