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