From ff70278be4925d4889d5451c20ce397dccfe97c5 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Thu, 20 Aug 2026 21:45:48 +0200 Subject: [PATCH] HOSTNAME: "0.0.0.0" --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index e5256f8..b38cd00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -52,6 +52,10 @@ services: restart: unless-stopped environment: NODE_ENV: production + # Docker sets HOSTNAME=, 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