fixed documentation and added 0.13.32

This commit is contained in:
Jannik Kolodziej 2016-04-30 01:41:24 +02:00
parent 8a4191522f
commit 10a5956443
2 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@ FROM frolvlad/alpine-glibc
MAINTAINER Jannik Kolodziej <docker@jkolodziej.de>
ENV FACTORIO_VERSION=0.12.31 \
ENV FACTORIO_VERSION=0.12.32 \
MANAGER_VERSION=0.2.0 \
ADMIN_PASSWORD=

View File

@ -1,9 +1,9 @@
# Docker Image with SSL reverse-proxy and authentication
## How to use?
First run `docker build -t factorio-server-manager` in this directory.
First run `docker build -t factorio-server-manager .` in this directory.
Now you can start the container by running `docker run --name factorio-manager -d -p80:80 -p443:443 -p34197:34197/udp factorio-server-manager`
Now you can start the container by running `docker run --name factorio-manager -d -p 80:80 -p 443:443 -p 34197:34197/udp factorio-server-manager`
Your default credentials can be retrieved by checking the output of `docker logs factorio-manager`
@ -16,7 +16,7 @@ I have done my best to secure the container pretty well. This includes the gener
### But how do I change it?
Nothing easier than that:
When first running the container you need to mount the security volume to your host machine by running `docker run --name factorio-manager -d -v [yourpath]:/security -p80:80 -p443:443 -p34197:34197/udp factorio-server-manager`
When first running the container you need to mount the security volume to your host machine by running `docker run --name factorio-manager -d -v [yourpath]:/security - p80:80 -p 443:443 -p 34197:34197/udp factorio-server-manager`
You should always do that, as this will allow you to change the login credentials for any users as well. The directory will contain a "server.key" file and a "server.crt" file. If you replace these with a trusted SSL certificate and key, you should check that "server.crt" contains the whole certificate chain from the root of your CA.
@ -31,9 +31,13 @@ Deleting users is pretty straightforward. Delete the correct line.
To create a new password entry, you can use `openssl passwd -apr1 yourpasswordhere`. That should get you started.
## Updating Factorio
For now you can't update/downgrade the Factorio version from the UI. You can however do this using docker images while sustaining your security settings and map/modfiles. This guide assumes that you mounted the volumes /security /opt/factorio/saves and /opt/factorio/mods to your file system. Before doing anything we need to stop the old container using `docker stop factorio-manager`. To update Factorio you should then open the Dockerfile and change the Factorio version to the one desired. After that you need to rebuild the image using `docker build -t factorio-server-manager .`. Once completed you can simply rerun the command that you used to run the image in the first place. It's recommended to change the name to something including the version to keep track of the containers.
## For everyone who actually read this thing to the end
You can also set your default admin password by passing it to your initial docker run command like this:
`docker run -d --name factorio-manager -d -v [yourpath]:/security -p80:80 -p443:443 -p34197:34197/udp -e "ADMIN_PASSWORD=jqkSnQS4rA" factorio-server-manager`
`docker run -d --name factorio-manager -d -v [yourpath]:/security -p 80:80 -p 443:443 -p 34197:34197/udp -e "ADMIN_PASSWORD=jqkSnQS4rA" factorio-server-manager`
And now go and build some nice factories!