-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
113 lines (113 loc) · 3.01 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
101
102
103
104
105
106
107
108
109
110
111
112
113
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
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9999/actuator/health" ]
interval: 10s
retries: 4
depends_on:
discovery-service:
condition: service_healthy
gateway-service:
build: ./gateway-service
container_name: gateway-service
ports:
- '8888:8888'
expose:
- '8888'
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVICE_URL=http://config-service:9999
depends_on:
config-service:
condition: service_healthy
# .NET Core (Materiels Service)
materiels-service:
build: ./materiels-service
container_name: materiels-service
ports:
- '8081:8081'
expose:
- '8081'
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVICE_URL=http://config-service:9999
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8081/health" ]
interval: 10s
retries: 4
depends_on:
config-service:
condition: service_healthy
# Python Flask (Project Service)
project-service:
build: ./projet-service
container_name: project-service
ports:
- '5001:5000'
expose:
- '5001'
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVICE_URL=http://config-service:9999
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/health" ]
interval: 10s
retries: 4
depends_on:
config-service:
condition: service_healthy
# NodeJS (Result Service)
result-service:
build: ./results-service
container_name: results-service
ports:
- "3000:3000"
expose:
- '3000'
environment:
- DISCOVERY_SERVICE_HOST=discovery-service
- CONFIG_SERVICE_URL=http://config-service:9999
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/health" ]
interval: 10s
retries: 4
depends_on:
config-service:
condition: service_healthy
# Spring Boot (User Service)
user-service:
build: ./user-service
container_name: user-service
ports:
- '8082:8082'
expose:
- '8082'
environment:
- DISCOVERY_SERVICE_URL=http://discovery-service:8761/eureka
- CONFIG_SERVICE_URL=http://config-service:9999
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8082/actuator/health" ]
interval: 10s
retries: 4
depends_on:
config-service:
condition: service_healthy