Docker: Next an alle Interfaces binden fuer Healthcheck
This commit is contained in:
1 parent
8429fbdb03
commit
9895b3c3ff
1 file changed
+3
@@ -2,4 +2,7 @@
|
||||
set -e
|
||||
# Läuft bereits als node (USER node im Image): keine root-Rechte nötig.
|
||||
mkdir -p "${DATA_DIR:-/app/data}" "${BACKUPS_DIR:-/app/backups}"
|
||||
# Docker injects the container hostname; Next.js would bind only to its IP,
|
||||
# making the in-container 127.0.0.1 health check fail. Listen on all interfaces.
|
||||
export HOSTNAME="${APP_HOSTNAME:-0.0.0.0}"
|
||||
exec "$@"
|
||||
Reference in new issue
Block a user