factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
918 stars 218 forks source link

Documentation on Username and Token ENV Variables #371

Closed IncrediblePony closed 3 years ago

IncrediblePony commented 3 years ago

I have your image running on a Synology NAS and so far everything has been a breeze - but I wanted to use the UPDATE_MODS_ON_START variable, but there is no ample documentation on where I need to specify my username and token for me to find it at least. Can you update the docs so that this information is available?

Mods Copy mods into the mods folder and restart the server.

As of 0.17 a new environment variable was added UPDATE_MODS_ON_START which if set to true will cause the mods get to updated on server start. If set a valid Factorio Username and Token must be supplied or else the server will not start. They can either be set as docker secrets, environment variables, or pulled from the server-settings.json file.

IncrediblePony commented 3 years ago

Aand I fucked up and got impatient.. No need to hurry this up. I didn't realise I had to mount the folder and then wait for the map and look in the generated server-settings.json file from the game.