HOSTNAME: "0.0.0.0"

This commit is contained in:
2026-08-20 21:45:48 +02:00
parent 5171669d4d
commit ff70278be4

View File

@@ -52,6 +52,10 @@ services:
restart: unless-stopped
environment:
NODE_ENV: production
# Docker sets HOSTNAME=<container-id>, and the Next.js standalone server binds to
# exactly that one interface - localhost (healthcheck) and the container's other
# network addresses then answer with ECONNREFUSED.
HOSTNAME: "0.0.0.0"
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=public
DIRECT_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=public
REDIS_URL: redis://redis:6379