From 1b28ebb603c86c4e890404df59ab0d9c994e7753 Mon Sep 17 00:00:00 2001 From: ht Date: Thu, 27 Aug 2026 10:46:59 +0300 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20backend'i=20sabit=20PORT=3D3001'?= =?UTF-8?q?e=20zorla=20(Coolify=20PORT=3D80=20nginx=20ile=20=C3=A7ak=C4=B1?= =?UTF-8?q?=C5=9F=C4=B1yordu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9cbc51a..60327a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,10 @@ COPY --from=build /app/nginx.conf /etc/nginx/http.d/default.conf WORKDIR /app COPY --from=build /app/server ./server -# Başlangıç: Node backend'i (3001) arka planda + nginx ön planda -RUN printf '#!/bin/sh\nset -e\nnode /app/server/index.js &\nexec nginx -g "daemon off;"\n' > /start.sh \ +# Başlangıç: Node backend'i (sabit 3001) arka planda + nginx (80) ön planda. +# Coolify container'a PORT=80 verir; backend'i 3001'e sabitleyip nginx ile +# çakışmasını önlüyoruz (nginx /api → 127.0.0.1:3001 proxy'ler). +RUN printf '#!/bin/sh\nset -e\nPORT=3001 node /app/server/index.js &\nexec nginx -g "daemon off;"\n' > /start.sh \ && chmod +x /start.sh EXPOSE 80