From adf525986809f3e825bd78307fef0bf046733cc6 Mon Sep 17 00:00:00 2001 From: kevchess15 Date: Thu, 3 Sep 2026 06:33:55 +0000 Subject: [PATCH] fix 502 bad gateway ost Binding: dsh web is binding strictly to 127.0.0.1:3080 inside the container. Dokploy's proxy routes traffic using the container's internal network IP, which gets rejected because the app is only listening to local loopback inside its isolated shell. Browser Crashes: It is attempting to spawn a desktop browser inside a headless Docker Linux container, which causes the command to crash with [ELIFECYCLE] Command failed (as seen in Containers 2 and 3). --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f14ded757..6ff35f3b62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,7 @@ COPY . . RUN pnpm install RUN pnpm run build -# Expose Web UI port and bind to all network interfaces -ENV HOST=0.0.0.0 -ENV PORT=3080 EXPOSE 3080 -CMD ["pnpm", "dsh", "web"] \ No newline at end of file +# Force 0.0.0.0 host binding and disable browser popups +CMD ["node", "--import", "tsx/esm", "apps/cli/src/bin.ts", "web", "--host", "0.0.0.0", "--no-open"] \ No newline at end of file