Skip to content

Instantly share code, notes, and snippets.

@gsandaru
Last active January 30, 2022 16:21
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 gsandaru/db9221d5257df5626dcd637ba6fdf4cf to your computer and use it in GitHub Desktop.
Save gsandaru/db9221d5257df5626dcd637ba6fdf4cf to your computer and use it in GitHub Desktop.
Minio Setup with SSL / Nginx (https-portal) - Docker
services:
https-portal:
image: steveltn/https-portal:1
ports:
- 80:80
- 443:443
restart: always
networks:
- front-tier
environment:
DOMAINS: 'url1.com -> http://minio:9000, url-console.com -> http://minio:9001'
STAGE: 'production' # Don't use production until staging works
# FORCE_RENEW: 'true'
CLIENT_MAX_BODY_SIZE: 10M
volumes:
- ./https-portal-data:/var/lib/https-portal
minio:
image: minio/minio
depends_on:
- https-portal
expose:
- "9000"
- "9001"
env_file:
- ./minio.env
volumes:
- ./minio-data:/data
- ./config:/root/.minio/
command: server --console-address :9001 /data
networks:
- front-tier
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
front-tier:
========================================================= .minio.env file ======================
MINIO_ROOT_USER=xxxxxxxxxx
MINIO_ROOT_PASSWORD=xxxxxxxxxxxxxx
===================================== POLICY - Allow Buckets By Username =======================
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::${aws:username}/*",
"arn:aws:s3:::${aws:username}"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment