Browse Source

Factorio: added admin-user feature

master
Yuri van Midden 1 year ago
parent
commit
9504227750
Signed by: yuri GPG Key ID: B1E365DD233EF90A
  1. 2
      config/factorio/server-adminlist.json
  2. 5
      docker-compose.yml

2
config/factorio/server-adminlist.json

@ -1,3 +1,3 @@
[
""
"${ADMIN_USERNAME}"
]

5
docker-compose.yml

@ -34,14 +34,15 @@ services:
- USERNAME=${FACTORIO_USERNAME}
- TOKEN=${FACTORIO_TOKEN}
- GAME_PASSWORD=${FACTORIO_GAME_PASSWORD}
- ADMIN_USERNAME=${FACTORIO_USERNAME}
ports:
- "34197:34197/udp"
- "27015:27015/tcp"
volumes:
- "${DATA_DIR}/factorio:/factorio"
- "./config/factorio/server-settings.json:/server-settings.json:ro"
- "./config/factorio/server-adminlist.json:/factorio/config/server-adminlist.json"
- "./config/factorio/server-adminlist.json:/server-adminlist.json:ro"
- "./config/factorio/map-settings.json:/factorio/config/map-settings.json"
- "./config/factorio/map-gen-settings.json:/factorio/config/map-gen-settings.json"
- "./config/factorio/mod-list.json:/factorio/mods/mod-list.json"
entrypoint: /bin/sh -c "mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && exec /docker-entrypoint.sh"
entrypoint: /bin/sh -c "mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && envsubst < /server-adminlist.json > /factorio/config/server-adminlist.json && exec /docker-entrypoint.sh"
Loading…
Cancel
Save