fix postgres section docker-compose.yaml

add healthcheck to ensure postgres db is properly created
This commit is contained in:
James Higginbotham IV
2025-07-04 14:04:52 -05:00
committed by GitHub
parent 5b6111fb8b
commit 4a0ae29aef

View File

@@ -80,6 +80,11 @@ services:
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: MediaManager
POSTGRES_DB: MediaManager