Skip to content

Commit

Permalink
add env vars with defaults for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Dec 10, 2024
1 parent b979f25 commit 47323a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ NET_VERSION=171022
ACCOUNT_MANAGER_SECRET=
# Should be the externally facing IP of your server host
EXTERNAL_IP=localhost


# If using sqlite, set this to 1 and the others to 0. You can ignore the mariadb values if you are using sqlite.
USING_SQLITE=1
SQLITE_DATABASE_PATH=resServer/dlu.sqlite

# If using mysql, set this to 1 and the others to 0. You can ignore the sqlite values if you are using mysql.
USING_MYSQL=0
# Database values
# Be careful with special characters here. It is more safe to use normal characters and/or numbers.
MARIADB_USER=darkflame
MARIADB_PASSWORD=
MARIADB_DATABASE=darkflame
SKIP_ACCOUNT_CREATION=1
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ services:
- CLIENT_LOCATION=/app/luclient
- DLU_CONFIG_DIR=/app/configs
- DUMP_FOLDER=/app/dump
- USING_SQLITE=${USING_SQLITE:-1}
- SQLITE_DATABASE_PATH=${SQLITE_DATABASE_PATH:-resServer/dlu.sqlite}
- USING_MYSQL=${USING_MYSQL:-0}
- SKIP_ACCOUNT_CREATION=${SKIP_ACCOUNT_CREATION:-1}
- MYSQL_HOST=darkflamedb
- MYSQL_DATABASE=${MARIADB_DATABASE:-darkflame}
- MYSQL_USERNAME=${MARIADB_USER:-darkflame}
Expand Down

0 comments on commit 47323a2

Please sign in to comment.