2021-12-07 13:50:05 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2021-12-08 07:50:15 +00:00
|
|
|
setup:
|
|
|
|
container_name: DarkflameSetup
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/setup.Dockerfile
|
|
|
|
environment:
|
|
|
|
- DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
|
|
- DATABASE_HOST=database
|
|
|
|
- DATABASE_USER=${MARIADB_USER:-darkflame}
|
|
|
|
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
|
|
|
- EXTERNAL_IP=${EXTERNAL_IP:-darkflame}
|
2023-08-04 02:38:33 +00:00
|
|
|
- BUILD_VERSION=${BUILD_VERSION:?171022}
|
2021-12-08 07:50:15 +00:00
|
|
|
volumes:
|
2021-12-31 13:04:51 +00:00
|
|
|
- ${CLIENT_PATH:?missing_client_path}:/client
|
2021-12-08 13:39:19 +00:00
|
|
|
- shared_configs:/docker/
|
2021-12-08 07:50:15 +00:00
|
|
|
|
2021-12-07 13:50:05 +00:00
|
|
|
database:
|
|
|
|
container_name: DarkflameDatabase
|
2021-12-08 13:39:19 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/database.Dockerfile
|
2021-12-07 13:50:05 +00:00
|
|
|
environment:
|
|
|
|
- MARIADB_USER=${MARIADB_USER:-darkflame}
|
|
|
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
|
|
|
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-darkflame}
|
|
|
|
- MARIADB_DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- darkflame
|
2021-12-09 07:10:29 +00:00
|
|
|
# You can expose these so that DB management tools can connect (WARNING: INSECURE)
|
2021-12-08 13:57:16 +00:00
|
|
|
# ports:
|
2021-12-09 07:10:29 +00:00
|
|
|
# - 3306:3306
|
2021-12-07 13:50:05 +00:00
|
|
|
|
|
|
|
darkflame:
|
2021-12-08 08:54:44 +00:00
|
|
|
container_name: DarkflameServer
|
2021-12-07 13:50:05 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/Dockerfile
|
|
|
|
args:
|
|
|
|
- BUILD_THREADS=${BUILD_THREADS:-1}
|
2021-12-07 15:29:26 +00:00
|
|
|
- BUILD_VERSION=${BUILD_VERSION:-171022}
|
2021-12-07 13:50:05 +00:00
|
|
|
volumes:
|
2022-01-24 20:52:11 +00:00
|
|
|
- ${CLIENT_PATH:?missing_client_path}:/client:ro
|
|
|
|
- shared_configs:/shared_configs:ro
|
2021-12-07 21:25:58 +00:00
|
|
|
depends_on:
|
|
|
|
- database
|
2021-12-07 22:17:26 +00:00
|
|
|
ports:
|
|
|
|
- "1001:1001/udp"
|
|
|
|
- "2000:2000/udp"
|
|
|
|
- "2005:2005/udp"
|
|
|
|
- "3000-3300:3000-3300/udp"
|
2021-12-07 13:50:05 +00:00
|
|
|
|
2021-12-07 20:25:15 +00:00
|
|
|
brickbuildfix:
|
2021-12-08 08:54:44 +00:00
|
|
|
container_name: DarkflameBrickBuildFix
|
2021-12-07 20:25:15 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/brickfix.Dockerfile
|
|
|
|
ports:
|
|
|
|
- 80:80
|
2021-12-07 21:17:18 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
|
|
|
interval: 2m
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
start_period: 40s
|
2021-12-07 20:25:15 +00:00
|
|
|
|
2021-12-07 20:30:08 +00:00
|
|
|
account-manager:
|
2021-12-08 08:54:44 +00:00
|
|
|
container_name: DarkflameAccountManager
|
2021-12-07 20:34:06 +00:00
|
|
|
networks:
|
|
|
|
- darkflame
|
2021-12-07 20:30:08 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/AccountManager.Dockerfile
|
|
|
|
environment:
|
|
|
|
- DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
|
|
- DATABASE_HOST=database
|
|
|
|
- DATABASE_USER=${MARIADB_USER:-darkflame}
|
|
|
|
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
2021-12-31 13:04:51 +00:00
|
|
|
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?missing_account_secret}
|
2021-12-07 20:30:08 +00:00
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2021-12-07 21:17:18 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
|
|
|
interval: 2m
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
start_period: 40s
|
2021-12-07 21:30:08 +00:00
|
|
|
depends_on:
|
|
|
|
- database
|
2021-12-07 20:30:08 +00:00
|
|
|
|
2021-12-07 13:50:05 +00:00
|
|
|
networks:
|
|
|
|
darkflame:
|
2021-12-08 06:33:34 +00:00
|
|
|
|
2021-12-07 13:50:05 +00:00
|
|
|
volumes:
|
|
|
|
database:
|
2021-12-08 13:39:19 +00:00
|
|
|
shared_configs:
|