-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (84 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
90 lines (84 loc) · 2.4 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
services:
serviceregistry:
image: 'chd05910/serviceregistry:0.0.1'
container_name: serviceregistry
ports:
- '8761:8761'
configserver:
image: 'chd05910/configserver:0.0.1'
container_name: configserver
ports:
- '9296:9296'
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
healthcheck:
test: ["CMD", "curl", "-f", "http://configserver:9296/actuator/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- serviceregistry
cloudgateway:
image: 'chd05910/cloudgateway:0.0.1'
container_name: cloudgateway
ports:
- '9090:9090'
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
productservice:
image: 'chd05910/productservice:0.0.1'
container_name: productservice
ports:
- '8080:8080'
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
- DB_HOST=host.docker.internal
- ZIPKIN_URL=host.docker.internal
healthcheck:
test: [ "CMD", "curl", "-f", "http://productservice:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
configserver:
condition: service_healthy
paymentservice:
image: 'chd05910/paymentservice:0.0.1'
container_name: paymentservice
ports:
- '8081:8081'
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
- DB_HOST=host.docker.internal
- ZIPKIN_URL=host.docker.internal
healthcheck:
test: [ "CMD", "curl", "-f", "http://paymentservice:8081/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
configserver:
condition: service_healthy
orderservice:
image: 'chd05910/orderservice:0.0.1'
container_name: orderservice
ports:
- '8082:8082'
environment:
- EUREKA_SERVER_ADDRESS=http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
- DB_HOST=host.docker.internal
- ZIPKIN_URL=host.docker.internal
depends_on:
configserver:
condition: service_healthy
productservice:
condition: service_healthy
paymentservice:
condition: service_healthy