-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
162 lines (154 loc) · 4.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
162 lines (154 loc) · 4.12 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
version: '3.8'
services:
# API Gateway - Point d'entrée unique
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
container_name: api-gateway
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
networks:
- smart-city-network
restart: unless-stopped
depends_on:
- mobility-service
- air-quality-service
- emergency-service
- urban-events-service
- orchestration-service
# Service Mobilité (REST)
mobility-service:
build:
context: ./mobility-service
dockerfile: Dockerfile
container_name: mobility-service
ports:
- "8081:8081"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8081/mobility/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 90s
networks:
- smart-city-network
restart: unless-stopped
# Service Qualité de l'Air (SOAP)
air-quality-service:
build:
context: ./air-quality-service
dockerfile: Dockerfile
container_name: air-quality-service
ports:
- "8082:8082"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8082/airquality/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 90s
networks:
- smart-city-network
restart: unless-stopped
# Service Urgences (gRPC)
emergency-service:
build:
context: ./emergency-service
dockerfile: Dockerfile
container_name: emergency-service
ports:
- "8083:8083"
- "9090:9090"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8083/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 90s
networks:
- smart-city-network
restart: unless-stopped
# Service Événements (GraphQL)
urban-events-service:
build:
context: ./urban-events-service
dockerfile: Dockerfile
container_name: urban-events-service
ports:
- "8084:8084"
environment:
- SPRING_PROFILES_ACTIVE=docker
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8084/actuator/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 90s
networks:
- smart-city-network
restart: unless-stopped
# Service d'Orchestration avec Gemini AI
orchestration-service:
build:
context: ./orchestration-service
dockerfile: Dockerfile
container_name: orchestration-service
ports:
- "8085:8085"
environment:
- SPRING_PROFILES_ACTIVE=docker
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- GEMINI_MODEL=${GEMINI_MODEL:-gemini-2.5-flash-lite}
- GEMINI_ENABLED=${GEMINI_ENABLED:-true}
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8085/orchestration/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
networks:
- smart-city-network
restart: unless-stopped
depends_on:
- mobility-service
- air-quality-service
- urban-events-service
# Client Web React
client-web:
build:
context: ./client-web
dockerfile: Dockerfile
container_name: client-web
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://localhost:8080
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
networks:
- smart-city-network
restart: unless-stopped
depends_on:
- api-gateway
networks:
smart-city-network:
driver: bridge