Move FACTORIO_VERSION value to docker-compose.yaml

This commit is contained in:
Sergey Morozov 2020-09-22 12:52:17 +03:00
parent c692f4ca55
commit 4f5edd3624
No known key found for this signature in database
GPG Key ID: 4B08C96219E6D34E
4 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,3 @@
FACTORIO_VERSION=latest
ADMIN_USER=admin
ADMIN_PASS=factorio
RCON_PASS=

View File

@ -9,7 +9,6 @@ and [Docker Compose](https://docs.docker.com/compose/install/) installed.
Copy `docker-compose.yaml` and `.env` files from this repository to somewhere on your server.
Edit values in the `.env` file:
* `FACTORIO_VERSION` (default `latest`): Factorio version that will be downloaded and used in FSM.
* `ADMIN_USER` (default `admin`): Name of the default user created for FSM UI.
* `ADMIN_PASS` (default `factorio`): Default user password. \
__Important:__ _For security reasons, please change the default user name and password. Never use the defaults._
@ -29,6 +28,7 @@ docker-compose up -d
```
### Simple configuration without HTTPS
If you don't care about HTTPS and want to run just the Factorio Server Manager, or want to run it on local machine you can use `docker-compose.simple.yaml`.
Ignore `DOMAIN_NAME` and `EMAIL_ADDREESS` variables in `.env` file and run
@ -36,11 +36,17 @@ Ignore `DOMAIN_NAME` and `EMAIL_ADDREESS` variables in `.env` file and run
docker-compose -f docker-compose.simple.yaml up -d
```
### Factorio version
By default container will download the latest version of factorio. If you want to use specific version, you can change
the value of `FACTORIO_VERSION=latest` variable in the `docker-compose.yaml` file.
## Accessing the application
Go to the domain specified in your `.env` file in your web browser. If running on localhost host access the application at http://localhost
### First start
When container starts it begins to dowload Factorio headless server archive, and only after that Factorio Server Manager server starts.
So when Docker Compose writes
```

View File

@ -5,7 +5,7 @@ services:
container_name: "factorio-server-manager"
restart: "unless-stopped"
environment:
- "FACTORIO_VERSION"
- "FACTORIO_VERSION=latest"
- "ADMIN_USER"
- "ADMIN_PASS"
- "RCON_PASS"

View File

@ -5,7 +5,7 @@ services:
container_name: "factorio-server-manager"
restart: "unless-stopped"
environment:
- "FACTORIO_VERSION"
- "FACTORIO_VERSION=latest"
- "ADMIN_USER"
- "ADMIN_PASS"
- "RCON_PASS"