-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (60 loc) · 1.7 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
version: '3'
services:
serviceregistry:
image: 'ousmane1999/service-registry:latest'
container_name: serviceregistry
ports:
- '8761:8761'
configserver:
image: 'ousmane1999/configserver:latest'
container_name: configserver
ports:
- '9296:9296'
environment:
- EUREKA_SERVER_ADDRESS:http://serviceregistry:8761/eureka
healthcheck:
test: ["CMD", "curl", "-f", "http://configserver:9296/actuator/health"]
timeout: 5ms
retries: 5
depends_on:
- serviceregistry
apigateway:
image: 'ousmane1999/api-gateway-service:latest'
ports:
- '9090:9090'
environment:
- EUREKA_SERVER_ADDRESS:http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
orderservice:
image: 'ousmane1999/orderservice:0.0.1'
ports:
- '8081:8081'
environment:
- EUREKA_SERVER_ADDRESS:http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
productservice:
image: 'ousmane1999/productservice:0.0.1'
ports:
- '8082:8082'
environment:
- EUREKA_SERVER_ADDRESS:http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy
paymentservice:
image: 'ousmane1999/paymentservice:0.0.1'
ports:
- '8089:8089'
environment:
- EUREKA_SERVER_ADDRESS:http://serviceregistry:8761/eureka
- CONFIG_SERVER_URL=configserver
depends_on:
configserver:
condition: service_healthy