From ff266584054c69d0f7bc8eaddcced03326474d67 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Sat, 25 May 2024 22:19:53 +0200 Subject: [PATCH] Add postgres service for testing --- docker-compose.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 207e767..3e205c1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,3 +21,15 @@ services: ports: - "8500:8500" - "8501:8501" + postgres: + image: postgres:latest + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=postgres + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 + ports: + - "5432:5432"