From 4500b5c703c4e4c7e27c8034a62c1a7b24467323 Mon Sep 17 00:00:00 2001 From: till_schuetze Date: Thu, 14 Nov 2024 10:42:23 +0100 Subject: [PATCH] Set host to localhost in pipeline --- .github/workflows/code-quality.yml | 1 + api/.env | 2 +- docker-compose.yaml | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 0825a6ca3..c3cfb1a48 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -297,6 +297,7 @@ jobs: - name: Setup DB run: | cd api + export PGHOST=localhost sqlx database create sqlx migrate run - name: Start API diff --git a/api/.env b/api/.env index e2525a40c..3175b3888 100644 --- a/api/.env +++ b/api/.env @@ -11,7 +11,7 @@ APP_PORT=3000 # Database PGUSER=www-data PGPASSWORD=www-data -PGHOST=localhost +PGHOST=db PGPORT=5432 PGDATABASE=swissgeol-local diff --git a/docker-compose.yaml b/docker-compose.yaml index 1c6424010..1ac01c435 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -78,7 +78,6 @@ services: interval: 10s timeout: 5s retries: 5 - command: postgres -c log_statement=all volumes: minio: