DarkflameServer/docker-compose.yml

85 lines
2.6 KiB
YAML
Raw Permalink Normal View History

2021-12-07 13:50:05 +00:00
version: "3"
name: dlu
2021-12-07 13:50:05 +00:00
services:
darkflamedb:
networks:
- darkflame
image: mariadb:latest
volumes:
- ${DB_DATA_DIR:-db-data}:/var/lib/mysql
2021-12-07 13:50:05 +00:00
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=1
2021-12-07 13:50:05 +00:00
- MARIADB_USER=${MARIADB_USER:-darkflame}
- MARIADB_PASSWORD=${MARIADB_PASSWORD:?error}
2021-12-07 13:50:05 +00:00
- MARIADB_DATABASE=${MARIADB_DATABASE:-darkflame}
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
image: ghcr.io/darkflameuniverse/darkflameserver:latest
2021-12-07 13:50:05 +00:00
volumes:
- ${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/
environment:
- CLIENT_LOCATION=/app/luclient
- DLU_CONFIG_DIR=/app/configs
- DUMP_FOLDER=/app/dump
- MYSQL_HOST=darkflamedb
- MYSQL_DATABASE=${MARIADB_DATABASE:-darkflame}
- MYSQL_USERNAME=${MARIADB_USER:-darkflame}
- MYSQL_PASSWORD=${MARIADB_PASSWORD:?error}
- EXTERNAL_IP=${EXTERNAL_IP:-localhost}
- CLIENT_NET_VERSION=${CLIENT_NET_VERSION:-171022}
2021-12-07 21:25:58 +00:00
depends_on:
- darkflamedb
ports:
- "1001:1001/udp"
- "2005:2005/udp"
- "3000-3300:3000-3300/udp"
healthcheck:
test: ["CMD", "ls", "/app/resServer/CDServer.sqlite"]
2021-12-07 13:50:05 +00:00
darkflameweb:
2021-12-07 20:25:15 +00:00
networks:
- darkflame
image: ghcr.io/darkflameuniverse/nexusdashboard:latest
volumes:
- ${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:
- 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
depends_on:
- darkflamedb
- darkflameserver
2021-12-07 20:30:08 +00:00
ports:
- 8000:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
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:
volumes:
db-data: