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