Compare commits

...

2 Commits

Author SHA1 Message Date
93822d930c Fix reading docker secrets token 2020-09-26 13:53:48 +02:00
5474bb842d Better document PORT env 2020-09-17 18:10:59 +02:00
5 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ if [[ -f /run/secrets/username ]]; then
USERNAME=$(cat /run/secrets/username)
fi
if [[ -f /run/secrets/username ]]; then
if [[ -f /run/secrets/token ]]; then
TOKEN=$(cat /run/secrets/token)
fi

View File

@ -5,7 +5,7 @@ if [[ -f /run/secrets/username ]]; then
USERNAME=$(cat /run/secrets/username)
fi
if [[ -f /run/secrets/username ]]; then
if [[ -f /run/secrets/token ]]; then
TOKEN=$(cat /run/secrets/token)
fi

View File

@ -13,3 +13,4 @@ services:
# - UPDATE_MODS_ON_START=true
# - USERNAME=FactorioUsername
# - TOKEN=FactorioToken
# - PORT=34198

View File

@ -5,7 +5,7 @@ if [[ -f /run/secrets/username ]]; then
USERNAME=$(cat /run/secrets/username)
fi
if [[ -f /run/secrets/username ]]; then
if [[ -f /run/secrets/token ]]; then
TOKEN=$(cat /run/secrets/token)
fi

View File

@ -312,7 +312,7 @@ sudo docker-compose up -d
### Ports
* `34197/udp` - Game server (required).
* `34197/udp` - Game server (required). This can be changed with the `PORT` environment variable.
* `27015/tcp` - RCON (optional).
## LAN Games