mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
82 lines
2.0 KiB
YAML
82 lines
2.0 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
database:
|
|
container_name: DarkflameDatabase
|
|
image: mariadb:10.6
|
|
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
|
|
|
|
darkflame:
|
|
container_name: DarkFlameServer
|
|
networks:
|
|
- darkflame
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/Dockerfile
|
|
args:
|
|
- BUILD_THREADS=${BUILD_THREADS:-1}
|
|
- BUILD_VERSION=${BUILD_VERSION:-171022}
|
|
environment:
|
|
- DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
- DATABASE_HOST=database
|
|
- DATABASE_USER=${MARIADB_USER:-darkflame}
|
|
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
|
volumes:
|
|
- ${CLIENT_PATH:?err}:/client
|
|
depends_on:
|
|
- database
|
|
|
|
brickbuildfix:
|
|
container_name: DarkFlameBrickBuildFix
|
|
networks:
|
|
- darkflame
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/brickfix.Dockerfile
|
|
ports:
|
|
- 80:80
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
|
interval: 2m
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
account-manager:
|
|
container_name: DarkFlameAccountManager
|
|
networks:
|
|
- darkflame
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/AccountManager.Dockerfile
|
|
environment:
|
|
- DATABASE=${MARIADB_DATABASE:-darkflame}
|
|
- DATABASE_HOST=database
|
|
- DATABASE_USER=${MARIADB_USER:-darkflame}
|
|
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-darkflame}
|
|
- ACCOUNT_SECRET=${ACCOUNT_MANAGER_SECRET:?err}
|
|
ports:
|
|
- 5000:5000
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
|
interval: 2m
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 40s
|
|
depends_on:
|
|
- database
|
|
|
|
networks:
|
|
darkflame:
|
|
|
|
volumes:
|
|
database:
|