forked from LBPUnion/ProjectLighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (89 loc) · 2.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.4'
volumes:
database:
redis:
services:
gameserver:
image: ghcr.io/lbpunion/projectlighthouse:main
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: ghcr.io/lbpunion/projectlighthouse:main
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: ghcr.io/lbpunion/projectlighthouse:main
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"