right container start sequence

This commit is contained in:
leca 2024-10-31 07:52:37 +03:00
parent ad5d7c4547
commit c950882e0e
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ services:
- 8012:8080 - 8012:8080
depends_on: depends_on:
- database - database
restart: on-failure
volumes: volumes:
- ./data/temp:/temp - ./data/temp:/temp
- ./data/uploads:/uploads - ./data/uploads:/uploads
@ -19,3 +20,5 @@ services:
POSTGRES_USER: bsfe POSTGRES_USER: bsfe
POSTGRES_PASSWORD: Ch@NgEME! POSTGRES_PASSWORD: Ch@NgEME!
POSTGRES_DB: bsfe POSTGRES_DB: bsfe
healthcheck:
test: ["CMD", "pg_isready", "-U", "bsfe"]