Skip to content

Instantly share code, notes, and snippets.

@socketwench
Created June 24, 2020 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save socketwench/4c27ebe07533451c40eaa6d78c1e2a6e to your computer and use it in GitHub Desktop.
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
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