fix(backend): Add postgres run configuration for persistent database

This commit is contained in:
2025-09-07 09:25:11 +02:00
parent ea56f53f69
commit 83f1fa71b6
6 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
version: '3.8'
services:
postgres:
image: postgres:17-alpine
container_name: legalconsenthub-postgres
environment:
POSTGRES_DB: legalconsenthub
POSTGRES_USER: legalconsenthub
POSTGRES_PASSWORD: legalconsenthub
ports:
- "5432:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U legalconsenthub -d legalconsenthub"]
interval: 10s
timeout: 5s
retries: 5