Update templates/compose/sparkyfitness.yaml

Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
Ariq Pradipa Santoso 2025-10-22 07:05:38 +07:00 committed by GitHub
parent eca0c5cb0d
commit d01d574d71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,11 @@ services:
POSTGRES_DB: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}'
POSTGRES_USER: '${SERVICE_USER_POSTGRES}'
POSTGRES_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10
volumes:
- 'sparkyfitness-db-postgresql:/var/lib/postgresql/data'