Factorio: added admin-user feature

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

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

@ -34,14 +34,15 @@ services:
- USERNAME=${FACTORIO_USERNAME} - USERNAME=${FACTORIO_USERNAME}
- TOKEN=${FACTORIO_TOKEN} - TOKEN=${FACTORIO_TOKEN}
- GAME_PASSWORD=${FACTORIO_GAME_PASSWORD} - GAME_PASSWORD=${FACTORIO_GAME_PASSWORD}
- ADMIN_USERNAME=${FACTORIO_USERNAME}
ports: ports:
- "34197:34197/udp" - "34197:34197/udp"
- "27015:27015/tcp" - "27015:27015/tcp"
volumes: volumes:
- "${DATA_DIR}/factorio:/factorio" - "${DATA_DIR}/factorio:/factorio"
- "./config/factorio/server-settings.json:/server-settings.json:ro" - "./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-settings.json:/factorio/config/map-settings.json"
- "./config/factorio/map-gen-settings.json:/factorio/config/map-gen-settings.json" - "./config/factorio/map-gen-settings.json:/factorio/config/map-gen-settings.json"
- "./config/factorio/mod-list.json:/factorio/mods/mod-list.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