-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.36 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
version: '3.8'
services:
eureka-server:
image: eurekaserver-service
container_name: eureka-server
ports:
- "8761:8761"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8761/actuator/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
product-service:
image: product-service
container_name: product-service
ports:
- "8081:8081"
depends_on:
eureka-server:
condition: service_healthy
cart-order-service:
image: cart-orders-service
container_name: cart-order-service
ports:
- "8085:8085"
depends_on:
eureka-server:
condition: service_healthy
product-service:
condition: service_started
review-service:
image: review-service
container_name: review-service
ports:
- "8086:8086"
depends_on:
eureka-server:
condition: service_healthy
product-service:
condition: service_started
auth-service:
image: auth-service
container_name: auth-service
ports:
- "8082:8082"
depends_on:
eureka-server:
condition: service_healthy
gateway-service:
image: gateway-service
container_name: gateway-service
ports:
- "8083:8083"
depends_on:
eureka-server:
condition: service_healthy
auth-service:
condition: service_started