From 4a0ae29aeff8d6d418ee954802e4e95a58fd0826 Mon Sep 17 00:00:00 2001 From: James Higginbotham IV <45857725+jimmyhiggs337@users.noreply.github.com> Date: Fri, 4 Jul 2025 14:04:52 -0500 Subject: [PATCH] fix postgres section docker-compose.yaml add healthcheck to ensure postgres db is properly created --- docker-compose.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index abb94f3..3f23512 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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