Skip to content

Commit e0a8262

Browse files
committed
Docker Compose: Restore wait-for-dependencies recipe for Metabase CI
Otherwise, the downstream application will connect to CrateDB or other services before they are ready to serve requests, resulting in connection errors.
1 parent 0eacfc1 commit e0a8262

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

application/metabase/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,14 @@ services:
3838
test: curl --max-time 25 http://localhost:4200 || exit 1
3939
interval: 30s
4040
timeout: 30s
41+
42+
# Wait for all defined services to be fully available by probing their health
43+
# status, even when using `docker compose up --detach`.
44+
# https://marcopeg.com/2019/docker-compose-healthcheck/
45+
wait:
46+
image: dadarek/wait-for-dependencies
47+
depends_on:
48+
metabase:
49+
condition: service_healthy
50+
cratedb:
51+
condition: service_healthy

0 commit comments

Comments
 (0)