-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (116 loc) · 2.74 KB
/
docker-compose.yml
File metadata and controls
118 lines (116 loc) · 2.74 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3.6"
services:
manager-server: &manager-server
build:
context: "."
dockerfile: "manager/server.dockerfile"
ports:
- 8083:8083
- 8082:8082
environment:
- LOGLEVEL=DEBUG
depends_on:
mysql:
condition: service_healthy
restart: true
redis:
condition: service_healthy
restart: true
healthcheck:
test: ["CMD", "/app/proxy/grpc-health-probe", "-addr", ":8082"]
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
profiles:
- prod
proxy-api-checker: &proxy-api-checker
build:
context: "."
dockerfile: "manager/check-api.dockerfile"
env_file:
- "manager/check_api.env"
depends_on:
mysql:
condition: service_healthy
restart: true
redis:
condition: service_healthy
restart: true
manager-server:
condition: service_healthy
restart: true
proxy-adapter:
condition: service_healthy
restart: true
profiles:
- prod
proxy-checker: &proxy-checker
build:
context: "."
dockerfile: "manager/check-proxy.dockerfile"
env_file:
- "manager/proxy_checker.env"
depends_on:
redis:
condition: service_healthy
restart: true
manager-server:
condition: service_healthy
restart: true
profiles:
- prod
proxy-adapter: &proxy-adapter
build:
context: "."
dockerfile: "provider-adapter/Dockerfile"
env_file:
- "manager/proxy_adapter.env"
ports:
- 8084:8082
- 8085:8083
healthcheck:
test: ["CMD", "/app/proxy/grpc-health-probe", "-addr", ":8082"]
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
profiles:
- prod
gateway: &gateway
build:
context: "."
dockerfile: "gateway/Dockerfile"
env_file:
- "gateway/.env"
ports:
- 8000:8000
depends_on:
manager-server:
condition: service_healthy
restart: true
profiles:
- prod
mysql:
image: "mysql:8.2.0"
environment:
MYSQL_ROOT_PASSWORD: xxxx
ports:
- 3306:3306
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
redis:
image: "redis/redis-stack:7.2.0-v8"
ports:
- 6379:6379
- 8001:8001
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
start_period: 5s
interval: 5s
timeout: 5s
retries: 55