Created
June 24, 2020 20:29
-
-
Save socketwench/4c27ebe07533451c40eaa6d78c1e2a6e to your computer and use it in GitHub Desktop.
A hacky way to add Min.io as a container for locally run Flight Deck
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
version: '3' | |
services: | |
minio: | |
image: minio/minio | |
container_name: minio | |
networks: | |
default: | |
aliases: | |
- flightdeck.minio | |
volumes: | |
- ./files:/data | |
ports: | |
- "9000:9000" | |
entrypoint: sh | |
command: -c 'mkdir -p /data/flightdeck && /usr/bin/minio server /data' | |
environment: | |
MINIO_ACCESS_KEY: minio | |
MINIO_SECRET_KEY: minio123 | |
MINIO_BROWSER: "off" | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | |
interval: 30s | |
timeout: 20s | |
retries: 3 | |
minio-startup: | |
image: minio/mc | |
depends_on: | |
- minio | |
entrypoint: > | |
/bin/sh -c " | |
wait 5000; | |
/usr/bin/mc config host add myminio http://minio:9000 minio minio123; | |
/usr/bin/mc policy set download myminio/flightdeck; | |
exit 0;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment