From e0f44e2985f4be3d0f6cedc685f2594c29cee084 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Wed, 15 Apr 2026 01:52:03 +0000 Subject: [PATCH] fix(ci): connect to postgres service by hostname, not localhost --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cd05ef77..3fe3e2f8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -26,8 +26,8 @@ jobs: --health-retries 5 env: - DATABASE_URL: postgresql+asyncpg://postgres:postgres@localhost:5432/resolutionflow_test - DATABASE_URL_SYNC: postgresql://postgres:postgres@localhost:5432/resolutionflow_test + DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/resolutionflow_test + DATABASE_URL_SYNC: postgresql://postgres:postgres@postgres:5432/resolutionflow_test SECRET_KEY: ci-test-secret-key-not-for-production DEBUG: "true" APP_NAME: ResolutionFlow @@ -114,8 +114,8 @@ jobs: --health-retries 5 env: - PLAYWRIGHT_DATABASE_URL: postgresql+asyncpg://postgres:postgres@127.0.0.1:5432/resolutionflow_test - PLAYWRIGHT_DATABASE_URL_SYNC: postgresql://postgres:postgres@127.0.0.1:5432/resolutionflow_test + PLAYWRIGHT_DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/resolutionflow_test + PLAYWRIGHT_DATABASE_URL_SYNC: postgresql://postgres:postgres@postgres:5432/resolutionflow_test PLAYWRIGHT_API_ORIGIN: http://127.0.0.1:8000 PLAYWRIGHT_BASE_URL: http://127.0.0.1:4173 PLAYWRIGHT_SECRET_KEY: ci-playwright-secret-key