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:06:40 +07:00 committed by GitHub
parent 19a4521209
commit d89d89be4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,9 +42,10 @@ services:
sparkyfitness-db:
image: 'postgres:15-alpine'
environment:
POSTGRES_DB: '${SPARKY_FITNESS_DB_NAME:-sparkyfitness}'
POSTGRES_USER: '${SERVICE_USER_POSTGRES}'
POSTGRES_PASSWORD: '${SERVICE_PASSWORD_POSTGRES}'
- 'POSTGRES_DB=${SPARKY_FITNESS_DB_NAME:-sparkyfitness}'
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
- POSTGRES_PORT=${SPARKY_FITNESS_DB_PORT:-5432}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s