2019-11-20 11:56:38 +00:00
|
|
|
version: '2.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
minio1:
|
|
|
|
image: minio/minio
|
|
|
|
volumes:
|
|
|
|
- data1-1:/data1
|
|
|
|
ports:
|
|
|
|
- "9001:9001"
|
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: minio
|
|
|
|
MINIO_SECRET_KEY: minio123
|
|
|
|
command: server --address :9001 /data1-1
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9001/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
# Redirects all requests to origin Minio.
|
|
|
|
redirect:
|
|
|
|
image: schmunk42/nginx-redirect
|
2019-11-21 13:13:38 +00:00
|
|
|
volumes:
|
|
|
|
- /nginx:/nginx
|
2019-11-20 11:56:38 +00:00
|
|
|
environment:
|
|
|
|
- SERVER_REDIRECT=minio1:9001
|
|
|
|
- SERVER_REDIRECT_CODE=307
|
2019-11-21 13:13:38 +00:00
|
|
|
- SERVER_ACCESS_LOG=/nginx/access.log
|
2019-11-20 11:56:38 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data1-1:
|