-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: separate minio into new docker compose file
- Loading branch information
1 parent
4a82a45
commit f54ffef
Showing
4 changed files
with
66 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: "3" | ||
|
||
volumes: | ||
superstreamer_minio_data: | ||
|
||
services: | ||
superstreamer-minio: | ||
image: quay.io/minio/minio | ||
environment: | ||
MINIO_ROOT_USER: minioadmin | ||
MINIO_ROOT_PASSWORD: minioadmin | ||
command: server /data --console-address ":9001" | ||
ports: | ||
- "9000:9000" # API | ||
- "9001:9001" # Console | ||
volumes: | ||
- superstreamer_minio_data:/data | ||
healthcheck: | ||
test: ["CMD", "mc", "ready", "local"] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
createbuckets: | ||
image: minio/mc | ||
depends_on: | ||
superstreamer-minio: | ||
condition: service_healthy | ||
entrypoint: > | ||
/bin/sh -c " | ||
mc alias set myminio http://superstreamer-minio:9000 minioadmin minioadmin; | ||
mc mb myminio/superstreamer; | ||
exit 0; | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# MinIO Configuration | ||
S3_ENDPOINT=http://superstreamer-minio:9000 | ||
S3_REGION=us-east-1 | ||
S3_ACCESS_KEY=minioadmin | ||
S3_SECRET_KEY=minioadmin | ||
S3_BUCKET=superstreamer |