Bring back the health check condition to depends_on

This commit is contained in:
Ananta Krsna dasa 2023-02-19 19:33:32 +05:30 committed by Frédéric Guillot
parent db7a4ae7e9
commit 20c4cb770e
3 changed files with 6 additions and 3 deletions

View file

@ -6,7 +6,8 @@ services:
ports: ports:
- "80:8080" - "80:8080"
depends_on: depends_on:
- db db:
condition: service_healthy
environment: environment:
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1 - RUN_MIGRATIONS=1

View file

@ -15,7 +15,8 @@ services:
image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest} image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest}
container_name: miniflux container_name: miniflux
depends_on: depends_on:
- db db:
condition: service_healthy
environment: environment:
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable - DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
- RUN_MIGRATIONS=1 - RUN_MIGRATIONS=1

View file

@ -20,7 +20,8 @@ services:
image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest} image: ${MINIFLUX_IMAGE:-miniflux/miniflux:latest}
container_name: miniflux container_name: miniflux
depends_on: depends_on:
- db db:
condition: service_healthy
expose: expose:
- "8080" - "8080"
environment: environment: