try fix launch order

This commit is contained in:
2025-05-26 16:12:06 +02:00
parent b0ed651abe
commit 6e62e21b0c
2 changed files with 15 additions and 1 deletions

View File

@@ -10,7 +10,8 @@ services:
env_file:
- stack.env
depends_on:
- db
db:
condition: service_healthy
db:
image: postgres:13
@@ -18,6 +19,11 @@ services:
- stack.env
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: