From 155875e2975a979b0d20b5701e4b0ab7a724077e Mon Sep 17 00:00:00 2001 From: Jory Irving Date: Wed, 1 Jul 2026 21:28:20 -0600 Subject: [PATCH] fix(docker): bind all interfaces so the in-app scheduler loopback works MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Next standalone binds to $HOSTNAME, which Kubernetes sets to the pod name — the server then only listens on the pod IP and the scheduler's loopback POSTs to 127.0.0.1:3000 fail with ECONNREFUSED. ENV HOSTNAME=0.0.0.0 makes the image bind all interfaces regardless of the deployment's env. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index ef1d8b28..f37d036f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,4 +54,9 @@ EXPOSE 3000 ENV PORT=3000 +# Next standalone binds to $HOSTNAME. Kubernetes sets HOSTNAME to the pod name, +# which resolves to the pod IP — the server then skips loopback and the in-app +# scheduler's POSTs to 127.0.0.1 get ECONNREFUSED. Bind all interfaces. +ENV HOSTNAME=0.0.0.0 + ENTRYPOINT ["/docker-entrypoint.sh"]