Skip to content

Commit

Permalink
add check health to minio
Browse files Browse the repository at this point in the history
  • Loading branch information
Parisa68 committed Dec 9, 2024
1 parent 6bda383 commit 97b31fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose-s3-outbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,17 @@ services:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=miniostorage
command: server /data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 10s
timeout: 5s
retries: 5

createbucket:
image: minio/mc
depends_on:
outbox:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add s3 http://outbox:9000 minio miniostorage;
Expand Down

0 comments on commit 97b31fa

Please sign in to comment.