-
Notifications
You must be signed in to change notification settings - Fork 206
/
Copy pathdocker-compose.yml
101 lines (100 loc) · 2.12 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
90
91
92
93
94
95
96
97
98
99
100
version: '2.1'
services:
mysql:
image: mysql
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-pWp770521", "--silent"]
interval: 5s
timeout: 3s
retries: 5
ports:
- "3306/tcp"
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_DATABASE=auth
- MYSQL_ROOT_PASSWORD=Wp770521
configserver:
image: wpcfan/config-server:0.0.1
healthcheck:
test: ["CMD", "curl", "-I", "http://configserver:8888"]
interval: 5s
timeout: 5s
retries: 10
ports:
- "8888/tcp"
depends_on:
mysql:
condition: service_healthy
discovery:
image: wpcfan/discovery:0.0.1
healthcheck:
test: ["CMD", "curl", "-f", "http://discovery:8761"]
interval: 5s
timeout: 3s
retries: 10
ports:
- "8761:8761/tcp"
depends_on:
configserver:
condition: service_healthy
links:
- configserver
zipkinserver:
image: wpcfan/zipkin-server:0.0.1
ports:
- "9411:9411/tcp"
depends_on:
configserver:
condition: service_healthy
discovery:
condition: service_healthy
links:
- configserver
- discovery
auth:
image: wpcfan/auth:0.0.1
ports:
- "8899:8899"
depends_on:
discovery:
condition: service_healthy
mysql:
condition: service_healthy
links:
- discovery
- configserver
- mysql
taskmgrjpa:
image: wpcfan/taskmgr-jpa:0.0.1
depends_on:
discovery:
condition: service_healthy
mysql:
condition: service_healthy
links:
- discovery
- configserver
- mysql
# taskmgrmongo:
# image: wpcfan/taskmgr-mongo:0.0.1
# depends_on:
# discovery:
# condition: service_healthy
# links:
# - discovery
# - configserver
gateway:
image: wpcfan/gateway:0.0.1
ports:
- "8091:8091"
depends_on:
configserver:
condition: service_healthy
discovery:
condition: service_healthy
links:
- configserver
- discovery
- zipkinserver