Add test postgres docker compose

This commit is contained in:
2025-03-06 21:40:16 +01:00
parent f55d2644c3
commit d8de67ae6c
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
version: "3.8"
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lemma_test
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres-data: