Skip to content

Commit

Permalink
Wait for minio to be healthy before spinning up cloud server
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Feb 22, 2024
1 parent 96e023b commit d86c015
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ services:
- "RUN_MODE=local"
network_mode: host
depends_on:
- mongo
- minio
mongo:
condition: service_started
minio:
condition: service_healthy

mongo: # Database for users, groups, project metadata, etc
restart: always
Expand All @@ -23,6 +25,8 @@ services:
command: server /mnt/data
ports:
- "9000:9000"
healthcheck:
test: curl --fail http://localhost:9000/minio/health/live
environment:
- "MINIO_ACCESS_KEY=KEY"
- "MINIO_SECRET_KEY=MYSECRET"
Expand Down

0 comments on commit d86c015

Please sign in to comment.