From a1e7aa46d5e52a89eb5412757e44aa10983b83c8 Mon Sep 17 00:00:00 2001 From: deploy Date: Thu, 30 Apr 2026 22:42:30 +0200 Subject: [PATCH] fix: use unique alias notesfrais-backend to avoid DNS conflict with other apps --- docker-compose.yml | 4 +++- frontend/nginx.conf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b759c32..319d73a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,7 +42,9 @@ services: condition: service_healthy restart: unless-stopped networks: - - internal + internal: + aliases: + - notesfrais-backend # ── Frontend nginx ────────────────────────────────────────── frontend: diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 8f199e1..e4f6248 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -22,7 +22,7 @@ server { # ── API → backend (service Docker interne) ──────────────── location /api/ { - proxy_pass http://backend:3001/api/; + proxy_pass http://notesfrais-backend:3001/api/; proxy_http_version 1.1; proxy_set_header Host $host;