From 082f11a3e93e4e6952d18bc86923254ce4a0851f Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 9 Sep 2025 04:13:51 +0200 Subject: [PATCH] fix: update Docker Compose deployment command and configure server to listen on all interfaces --- .gitea/workflows/deploy.yml | 2 ++ thoughts-frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2cabe58..31e00f4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,6 +30,8 @@ jobs: - name: Deploy with Docker Compose run: | + docker compose -f compose.prod.yml down + POSTGRES_USER=${{ secrets.POSTGRES_USER }} \ POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} \ POSTGRES_DB=${{ secrets.POSTGRES_DB }} \ diff --git a/thoughts-frontend/Dockerfile b/thoughts-frontend/Dockerfile index da3db3f..db4b899 100644 --- a/thoughts-frontend/Dockerfile +++ b/thoughts-frontend/Dockerfile @@ -25,5 +25,5 @@ COPY --from=builder /app/.next/static ./.next/static EXPOSE 3000 -CMD ["node", "server.js"] +CMD ["node", "server.js", "-H", "0.0.0.0", "-p", "3000"]