mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-01-29 08:12:05 -05:00
fix postgres section docker-compose.yaml
add healthcheck to ensure postgres db is properly created
This commit is contained in:
committed by
GitHub
parent
5b6111fb8b
commit
4a0ae29aef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user