feat: expand docker-compose to 8 services with monitoring stack per architecture spec

This commit is contained in:
2026-04-28 18:31:49 +08:00
parent 53c52a0b3e
commit d884e6bab2
8 changed files with 212 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
upstream backend_api {
server backend:8080;
}
upstream webhook_api {
server webhook:8081;
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://frontend:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location /api/ {
proxy_pass http://backend_api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /webhook/ {
proxy_pass http://webhook_api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /actuator/health {
proxy_pass http://backend_api;
}
}