From 785f7169cc9e7cd62b4bac4ce5a21f3135f7ff1c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 26 Jun 2026 16:54:30 +0000 Subject: [PATCH] =?UTF-8?q?Attache=20l'app=20au=20r=C3=A9seau=20externe=20?= =?UTF-8?q?du=20reverse=20proxy=20(NPM)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le conteneur app rejoint son réseau interne (accès Postgres) ET le réseau externe partagé avec Nginx Proxy Manager, afin que NPM puisse l'atteindre par nom (pleinr-app:3000) sans 504. Nom du réseau paramétrable via PROXY_NETWORK (défaut: nginx_default). Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 84a0f96..adf0e15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,21 @@ services: volumes: # Persists the auto-generated AUTH_SECRET across restarts. - appdata:/app/data + networks: + # "default" lets the app reach Postgres; "proxy" is the external network + # shared with the reverse proxy (e.g. Nginx Proxy Manager) so it can reach + # the app by name: forward to pleinr-app:3000 + - default + - proxy volumes: pgdata: appdata: + +networks: + default: + proxy: + # The reverse proxy's existing network. Must already exist (created by the + # NPM/nginx stack). Override the name with PROXY_NETWORK if it differs. + external: true + name: ${PROXY_NETWORK:-nginx_default}