feat: configure the game from env variables
This commit is contained in:
parent
bc5a70c4c6
commit
8ffcccb1e8
5 changed files with 39 additions and 8 deletions
docker
|
@ -43,6 +43,15 @@ services:
|
|||
size: 1g
|
||||
- planets:/opt/lwb5/site/static/beta5/pics/pl:ro
|
||||
- pgen:/var/spool/pgen:rw
|
||||
environment:
|
||||
LW_DB_HOST: db
|
||||
LW_DB_ADMIN_PASS_FILE: /run/secrets/lw_db_admin_pass
|
||||
LW_DB_USER_PASS_FILE: /run/secrets/lw_db_user_pass
|
||||
LW_SEND_MAIL: ${LW_SEND_MAIL}
|
||||
LW_STATIC_URL: ${LW_STATIC_URL}
|
||||
secrets:
|
||||
- lw_db_user_pass
|
||||
- lw_db_admin_pass
|
||||
|
||||
planetgen:
|
||||
build:
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
# Password for the database superuser
|
||||
DB_PASSWORD=...
|
||||
|
||||
# URL of the static assets from an external perspective
|
||||
LW_STATIC_URL=http://localhost/static
|
||||
# Send email? (yes or no)
|
||||
LW_SEND_MAIL=no
|
||||
|
||||
# Legacyworlds database - Main user
|
||||
LW_DB_USER_PASS=...
|
||||
# Legacyworlds database - Admin user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue