From 0b8f7edc08a441bea2df31af72bf7190f61d7295 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Thu, 21 May 2026 16:14:27 -0700 Subject: [PATCH] Fix postgres service for Forgejo Docker runner Remove host port binding (conflicts with local postgres on runner) and use service name hostname instead of localhost for DATABASE_URL. Co-Authored-By: Claude Sonnet 4.6 --- .forgejo/workflows/deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 393deb7..830e133 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -30,8 +30,6 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - ports: - - 5432:5432 steps: - name: ⬇️ Checkout repo @@ -49,7 +47,7 @@ jobs: - name: 🧪 Run unit tests run: npm run test:run env: - DATABASE_URL: postgresql://test:test@localhost:5432/brackt_test + DATABASE_URL: postgresql://test:test@postgres:5432/brackt_test NODE_OPTIONS: --max-old-space-size=4096 typecheck: