-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (79 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
80 lines (79 loc) · 2.03 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
services:
discovery-service:
build: ./discovery-service
container_name: discovery-service
ports:
- '8761:8761'
expose:
- '8761'
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8761/actuator/health" ]
interval: 10s
retries: 4
config-service:
build: ./config-service
container_name: config-service
ports:
- '9999:9999'
expose:
- '9999'
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
depends_on:
- discovery-service
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9999/actuator/health"]
interval: 10s
retries: 4
customer-service:
build: ./customer-service
container_name: customer-service
ports:
- '8081:8081'
expose:
- '8081'
depends_on:
config-service:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8081/actuator/health" ]
interval: 10s
retries: 4
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVER_URL=http://config-service:9999/
account-service:
build: ./account-service
container_name: account-service
ports:
- '8082:8082'
expose:
- '8082'
depends_on:
config-service:
condition: service_healthy
customer-service:
condition: service_healthy
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVER_URL=http://config-service:9999/
gateway-service:
build: ./gateway-service
container_name: gateway-service
ports:
- '8888:8888'
expose:
- '8888'
depends_on:
config-service:
condition: service_healthy
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVER_URL=http://config-service:9999/
frontend-angular:
build: ./angular-frontend
container_name: frontend-angular
ports:
- '82:80'
expose:
- '82'