Created
September 15, 2017 19:32
-
-
Save harshavardhana/cb6c0d4d220a9334a66d6259c7d54c95 to your computer and use it in GitHub Desktop.
Continuous mirroring
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: '2' | |
services: | |
minio: | |
image: minio/minio | |
container_name: miniobkp | |
ports: | |
- 9000:9000 | |
env_file: | |
- ./minio.env | |
command: server /export | |
volumes: | |
- minio:/root/.minio/ | |
mc: | |
image: minio/mc | |
depends_on: | |
- minio | |
container_name: mcbkp | |
env_file: | |
- ./minio.env | |
entrypoint: > | |
/bin/sh -c " | |
echo /usr/bin/mc config host a src https://play.minio.io:9000 $${PLAY_ACCESS_KEY} $${PLAY_SECRET_KEY}; | |
/usr/bin/mc config host a src https://play.minio.io:9000 $${PLAY_ACCESS_KEY} $${PLAY_SECRET_KEY}; | |
/usr/bin/mc config host a bkp http://minio:9000 $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY}; | |
/usr/bin/mc mirror -w src bkp; | |
" | |
volumes: | |
minio: |
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
MINIO_ACCESS_KEY=minio | |
MINIO_SECRET_KEY=minio123 | |
PLAY_ACCESS_KEY=Q3AM3UQ867SPQQA43P2F | |
PLAY_SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
myminio
- alias for minio connection