Update templates/compose/sparkyfitness.yaml
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
parent
eca0c5cb0d
commit
d01d574d71
1 changed files with 5 additions and 0 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue