mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-27 01:34:44 +01:00
Update README.md
This commit is contained in:
parent
4ecb1dcb6b
commit
ea426ca0f4
@ -182,7 +182,7 @@ Create file `config/server-adminlist.json` and add the adminlisted users.
|
|||||||
"friend"
|
"friend"
|
||||||
]
|
]
|
||||||
|
|
||||||
## Customize configuration files
|
## Customize configuration files (0.17.x+)
|
||||||
|
|
||||||
Out-of-the box, factorio does not support environment variables inside the configuration files. A workaround is the usage of `envsubst` which generates the configuration files dynamically during startup from environment variables set in docker-compose:
|
Out-of-the box, factorio does not support environment variables inside the configuration files. A workaround is the usage of `envsubst` which generates the configuration files dynamically during startup from environment variables set in docker-compose:
|
||||||
|
|
||||||
@ -199,7 +199,7 @@ Example which replaces the server-settings.json:
|
|||||||
environment:
|
environment:
|
||||||
- INSTANCE_NAME=Your Instance's Name
|
- INSTANCE_NAME=Your Instance's Name
|
||||||
- INSTANCE_DESC=Your Instance's Description
|
- INSTANCE_DESC=Your Instance's Description
|
||||||
entrypoint: /bin/sh -c "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 && exec /docker-entrypoint.sh"
|
||||||
|
|
||||||
The `server-settings.json` file may then contain the variable references like this:
|
The `server-settings.json` file may then contain the variable references like this:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user