Skip to content

Instantly share code, notes, and snippets.

@airbornelamb
Created September 27, 2018 01:52
Show Gist options
  • Save airbornelamb/d2f2eb839002296b02b9776b814e1a0f to your computer and use it in GitHub Desktop.
Save airbornelamb/d2f2eb839002296b02b9776b814e1a0f to your computer and use it in GitHub Desktop.
Minio stack
  1. insert drives
  2. partition and format drives
  3. create mountpoints
  4. add mounts to /etc/fstab
  5. I like to reboot to test mounting went successfully on reboot
  6. create the docker secrets
  7. docker stack deploy or run it in portainer
version: ‘3.5’
services:
minio:
image: minio/minio
#for ARM devices
#image: alexellis2/minio-armhf
volumes:
- minio_config:/root/.minio
- /mnt/data1:/data1
- /mnt/data2:/data2
- /mnt/data3:/data3
- /mnt/data4:/data4
ports:
- "9005:9000"
deploy:
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
secrets:
- MINIO_ACCESS_KEY
- MINIO_SECRET_KEY
volumes:
minio_config:
secrets:
MINIO_ACCESS_KEY:
external: true
MINIO_SECRET_KEY:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment