Bring back the health check condition to depends_on
This commit is contained in:
parent
db7a4ae7e9
commit
20c4cb770e
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue