|
|
|
@ -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" |
|
|
|
|