2021-12-07 13:50:05 +00:00
|
|
|
version: "3"
|
2024-01-08 15:13:28 +00:00
|
|
|
name: dlu
|
2021-12-07 13:50:05 +00:00
|
|
|
|
|
|
|
services:
|
2024-01-03 08:36:17 +00:00
|
|
|
darkflamedb:
|
2024-01-08 15:13:28 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
2024-01-03 08:36:17 +00:00
|
|
|
image: mariadb:latest
|
2024-01-08 15:13:28 +00:00
|
|
|
volumes:
|
2024-04-29 20:51:13 +00:00
|
|
|
- ${DB_DATA_DIR:-db-data}:/var/lib/mysql
|
2021-12-07 13:50:05 +00:00
|
|
|
environment:
|
2024-01-08 15:13:28 +00:00
|
|
|
- MARIADB_RANDOM_ROOT_PASSWORD=1
|
2021-12-07 13:50:05 +00:00
|
|
|
- MARIADB_USER=${MARIADB_USER:-darkflame}
|
2024-01-08 15:13:28 +00:00
|
|
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD:?error}
|
2021-12-07 13:50:05 +00:00
|
|
|
- MARIADB_DATABASE=${MARIADB_DATABASE:-darkflame}
|
2024-01-08 15:13:28 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
|
|
start_period: 10s
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
2021-12-07 13:50:05 +00:00
|
|
|
|
2024-01-03 12:00:49 +00:00
|
|
|
darkflameserver:
|
2021-12-07 13:50:05 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
2024-01-03 08:36:17 +00:00
|
|
|
image: ghcr.io/darkflameuniverse/darkflameserver:latest
|
2021-12-07 13:50:05 +00:00
|
|
|
volumes:
|
2024-01-08 15:13:28 +00:00
|
|
|
- ${HOST_CONFIG_DIR:-./server/config}:/app/configs/
|
|
|
|
- ${CLIENT_PATH:-./client}:/app/luclient:ro
|
|
|
|
- ${HOST_RESSERVER_LOCATION:-./server/res}:/app/resServer/
|
|
|
|
- ${HOST_DUMP_FOLDER:-./server/dump}:/app/dump/
|
|
|
|
- ${HOST_LOGS_DIR:-./server/logs}:/app/logs/
|
2024-01-03 08:36:17 +00:00
|
|
|
environment:
|
2024-01-08 15:13:28 +00:00
|
|
|
- CLIENT_LOCATION=/app/luclient
|
2024-01-03 08:36:17 +00:00
|
|
|
- DLU_CONFIG_DIR=/app/configs
|
2024-01-08 15:13:28 +00:00
|
|
|
- DUMP_FOLDER=/app/dump
|
2024-12-18 00:07:07 +00:00
|
|
|
- DATABASE_TYPE=mariadb
|
|
|
|
- SQLITE_DATABASE_PATH=${SQLITE_DATABASE_PATH:-resServer/dlu.sqlite}
|
|
|
|
- SKIP_ACCOUNT_CREATION=${SKIP_ACCOUNT_CREATION:-1}
|
2024-01-03 08:36:17 +00:00
|
|
|
- MYSQL_HOST=darkflamedb
|
|
|
|
- MYSQL_DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
|
|
- MYSQL_USERNAME=${MARIADB_USER:-darkflame}
|
2024-01-08 15:13:28 +00:00
|
|
|
- MYSQL_PASSWORD=${MARIADB_PASSWORD:?error}
|
2024-01-03 08:36:17 +00:00
|
|
|
- EXTERNAL_IP=${EXTERNAL_IP:-localhost}
|
2024-01-08 15:13:28 +00:00
|
|
|
- CLIENT_NET_VERSION=${CLIENT_NET_VERSION:-171022}
|
2021-12-07 21:25:58 +00:00
|
|
|
depends_on:
|
2024-01-03 08:36:17 +00:00
|
|
|
- darkflamedb
|
2021-12-07 22:17:26 +00:00
|
|
|
ports:
|
|
|
|
- "1001:1001/udp"
|
|
|
|
- "2005:2005/udp"
|
|
|
|
- "3000-3300:3000-3300/udp"
|
2024-01-08 15:13:28 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "ls", "/app/resServer/CDServer.sqlite"]
|
2021-12-07 13:50:05 +00:00
|
|
|
|
2024-01-03 08:36:17 +00:00
|
|
|
darkflameweb:
|
2021-12-07 20:25:15 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
2024-01-03 08:36:17 +00:00
|
|
|
image: ghcr.io/darkflameuniverse/nexusdashboard:latest
|
|
|
|
volumes:
|
2024-01-08 15:13:28 +00:00
|
|
|
- ${CLIENT_PATH:-./client}:/app/luclient:ro
|
|
|
|
- ${HOST_CACHE_LOCATION:-./web/cache}:/app/cache
|
|
|
|
- ${HOST_RESSERVER_LOCATION:-./server/res}:/app/cdclient:ro
|
|
|
|
- ${HOST_ND_LOGS_LOCATION:-./web/logs}:/logs
|
2021-12-07 20:30:08 +00:00
|
|
|
environment:
|
2024-01-08 15:13:28 +00:00
|
|
|
- APP_SECRET_KEY=${ACCOUNT_MANAGER_SECRET:?error}
|
|
|
|
- APP_DATABASE_URI=mysql+pymysql://${MARIADB_USER:-darkflame}:${MARIADB_PASSWORD:?error}@darkflamedb:3306/${MARIADB_DATABASE:-darkflame}
|
|
|
|
- CLIENT_LOCATION=/app/luclient/
|
|
|
|
- CACHE_LOCATION=/app/cache/
|
|
|
|
- CD_SQLITE_LOCATION=/app/cdclient/
|
|
|
|
- USER_ENABLE_REGISTER=1 # "0" is _not_ false, to disable, remove this line
|
2024-01-03 08:36:17 +00:00
|
|
|
depends_on:
|
|
|
|
- darkflamedb
|
2024-01-08 15:13:28 +00:00
|
|
|
- darkflameserver
|
2021-12-07 20:30:08 +00:00
|
|
|
ports:
|
2024-01-03 08:36:17 +00:00
|
|
|
- 8000:8000
|
2021-12-07 21:17:18 +00:00
|
|
|
healthcheck:
|
2024-01-03 08:36:17 +00:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8000"]
|
2021-12-07 21:17:18 +00:00
|
|
|
interval: 2m
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
start_period: 40s
|
2021-12-07 20:30:08 +00:00
|
|
|
|
2021-12-07 13:50:05 +00:00
|
|
|
networks:
|
|
|
|
darkflame:
|
2024-04-29 20:51:13 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|