-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 2.11 KB
/
docker-compose.yml
File metadata and controls
92 lines (87 loc) · 2.11 KB
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
90
91
92
version: "3.9"
services:
mariadb:
image: mariadb:11.4
container_name: osirose-mariadb
restart: unless-stopped
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- mariadb_data:/var/lib/mysql
- ./schema/migrations:/docker-entrypoint-initdb.d:ro
ports:
- "${MYSQL_PORT}:3306"
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD}"]
interval: 5s
timeout: 3s
retries: 10
login:
build:
context: .
target: login
depends_on:
mariadb:
condition: service_healthy
env_file:
- .env
volumes:
- ./config/server.json:/app/bin/server.json:ro
ports:
- "${LOGIN_PORT}:29000"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:30000/health" ]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
character:
build:
context: .
target: character
depends_on:
mariadb:
condition: service_healthy
login:
condition: service_healthy
env_file:
- .env
volumes:
- ./config/server.json:/app/bin/server.json:ro
ports:
- "${CHARACTER_PORT}:29100"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:30100/health" ]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
map:
build:
context: .
target: map
depends_on:
mariadb:
condition: service_healthy
character:
condition: service_healthy
env_file:
- .env
ports:
- "${MAP_START_PORT}-${MAP_END_PORT}:${MAP_START_PORT}-${MAP_END_PORT}"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:30200/health" ]
interval: 5s
timeout: 3s
retries: 10
volumes:
- ./config/server.json:/app/bin/server.json:ro
- ./scripts:/app/bin/scripts:ro
restart: unless-stopped
volumes:
mariadb_data: