fix: use unique alias notesfrais-backend to avoid DNS conflict with other apps
This commit is contained in:
+3
-1
@@ -42,7 +42,9 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- internal
|
internal:
|
||||||
|
aliases:
|
||||||
|
- notesfrais-backend
|
||||||
|
|
||||||
# ── Frontend nginx ──────────────────────────────────────────
|
# ── Frontend nginx ──────────────────────────────────────────
|
||||||
frontend:
|
frontend:
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ server {
|
|||||||
|
|
||||||
# ── API → backend (service Docker interne) ────────────────
|
# ── API → backend (service Docker interne) ────────────────
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://backend:3001/api/;
|
proxy_pass http://notesfrais-backend:3001/api/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user