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: