Docker: Next an alle Interfaces binden fuer Healthcheck
Docker Image / test (push) Successful in 1m8s
Docker Image / image (push) Successful in 29s

This commit is contained in:
loki committed 2026-10-10 11:28:23 +02:00
1 parent 8429fbdb03
commit 9895b3c3ff
1 file changed
+3
+3
View File
@@ -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 "$@"