Last active
September 13, 2024 11:46
-
-
Save gsandaru/db9221d5257df5626dcd637ba6fdf4cf to your computer and use it in GitHub Desktop.
Minio Setup with SSL / Nginx (https-portal) - Docker
This file contains hidden or 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
| 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