mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
89 lines
No EOL
2.1 KiB
YAML
89 lines
No EOL
2.1 KiB
YAML
version: '3.4'
|
|
volumes:
|
|
database:
|
|
redis:
|
|
services:
|
|
gameserver:
|
|
image: lighthouse:latest
|
|
container_name: gameserver
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "10061:10061"
|
|
environment:
|
|
SERVER: GameServer
|
|
healthcheck:
|
|
test: wget --spider -t1 -nv http://localhost:10061/LITTLEBIGPLANETPS3_XML/status || exit 1
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
volumes:
|
|
- "./data:/lighthouse/data:z"
|
|
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
|
website:
|
|
image: lighthouse:latest
|
|
container_name: website
|
|
restart: unless-stopped
|
|
ports:
|
|
- "10060:10060"
|
|
environment:
|
|
SERVER: Website
|
|
healthcheck:
|
|
test: wget --spider -t1 -nv http://localhost:10060/status || exit 1
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
volumes:
|
|
- "./data:/lighthouse/data:z"
|
|
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
|
api:
|
|
image: lighthouse:latest
|
|
container_name: api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "10062:10062"
|
|
environment:
|
|
SERVER: API
|
|
healthcheck:
|
|
test: wget --spider -t1 -nv http://localhost:10062/api/v1/status || exit 1
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
volumes:
|
|
- "./data:/lighthouse/data:z"
|
|
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
|
db:
|
|
image: mariadb:latest
|
|
container_name: db
|
|
restart: unless-stopped
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: lighthouse
|
|
MARIADB_DATABASE: lighthouse
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
|
|
timeout: 10s
|
|
interval: 5s
|
|
retries: 5
|
|
volumes:
|
|
- "database:/var/lib/mysql"
|
|
redis:
|
|
image: redis/redis-stack-server:latest
|
|
container_name: redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "redis:/var/lib/redis" |