Skip to content

Instantly share code, notes, and snippets.

@bahorn
Last active September 6, 2023 14:46
Show Gist options
  • Save bahorn/5326e02a3563422967f383e843a82d2e to your computer and use it in GitHub Desktop.
Save bahorn/5326e02a3563422967f383e843a82d2e to your computer and use it in GitHub Desktop.
version: '3'
services:
minio:
image: 'bahorn/minio:latest'
command: minio server /data
restart: always
ports:
- '9000:9000'
volumes:
- /mnt/compute:/data:rw
environment:
MINIO_ACCESS_KEY: a1
MINIO_SECRET_KEY: s1
minio_gateway:
image: 'bahorn/minio:latest'
command: minio gateway --address 0.0.0.0:9001 b2
restart: always
ports:
- '9001:9001'
environment:
MINIO_ACCESS_KEY: a2
MINIO_SECRET_KEY: s2
volumes:
- /mnt/compute:/data:ro
private_backup:
image: 'bahorn/mc:latest'
command: mirror --exclude ".*" --overwrite --remove -w /data bb/<private_bucket>
restart: always
volumes:
- /mnt/compute/private:/data:ro
- /srv/mc:/root/.mc:ro
depends_on:
- minio_gateway
public_backup:
image: 'bahorn/mc:latest'
restart: always
command: mirror --exclude ".*" --overwrite --remove -w /data bb/<public_bucket>
volumes:
- /mnt/compute/public:/data:ro
- /srv/mc:/root/.mc:ro
depends_on:
- minio_gateway
@bahorn
Copy link
Author

bahorn commented Apr 18, 2020

Containers are ones I built as the machine is ARM based (A Nvidia TX2) and the official builds are only PPC/x86_64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment