mirror of
https://github.com/R0m1k3/PleinR.git
synced 2026-10-12 01:38:04 +02:00
Attache l'app au réseau externe du reverse proxy (NPM)
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
This commit is contained in:
1 file changed
+14
@@ -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}
|
||||
Reference in new issue
Block a user