From b929bebb418569a44b48cb0a78b9f199f160dc76 Mon Sep 17 00:00:00 2001 From: Sebastian Smiley Date: Thu, 14 Dec 2023 13:56:05 -0500 Subject: [PATCH] Switch from postgres service to compose --- .github/workflows/test.yml | 12 ------------ docker-compose.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ccd3c51..a2460e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,18 +11,6 @@ on: jobs: tests: runs-on: ubuntu-latest - services: - postgres: - image: postgres - env: - POSTGRES_PASSWORD: postgres - ports: - - 5432:5432 - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 env: PIP_CONSTRAINT: .github/workflows/constraints.txt strategy: diff --git a/docker-compose.yml b/docker-compose.yml index b9c5ac0..1253d1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,15 @@ services: networks: - inner + postgres_no_ssl: + image: postgres:latest + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: postgres + ports: + - "5432:5432" + postgresdb: image: postgres:13.0 environment: