Skip to content

Instantly share code, notes, and snippets.

@iosifnicolae2
Last active January 17, 2024 15:37
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 iosifnicolae2/40e95126142b5155b4039cc696321a37 to your computer and use it in GitHub Desktop.
Save iosifnicolae2/40e95126142b5155b4039cc696321a37 to your computer and use it in GitHub Desktop.
MINIO_ROOT_USER=dev
MINIO_ROOT_PASSWORD=dev-pass

Minio Deployment

  • docker-compose up
  • open http://localhost:81
  • setup a Proxy host like in the below image (make sure to point to the right minio port)
    • you can also configure Let's Encrypt Certificates using Cloudflare DNS Challages like *.your-domain.com
    image
  • open http://minio.your-domain.com with the credentials provided in .env file
  • create a bucket and then create an Access Key
  • configure your app with the following settings:
version: '3.2'
services:
minio:
image: minio/minio:RELEASE.2023-10-07T15-07-38Z.fips
restart: unless-stopped
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
volumes:
- "./data/minio:/data"
command: server --console-address ":9001" /data
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
nginx:
image: 'jc21/nginx-proxy-manager:2.10.4'
restart: unless-stopped
volumes:
- ./data/nginx/data:/data
- ./data/nginx/letsencrypt:/etc/letsencrypt
ports:
- '80:80'
- '81:81'
- '443:443'
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment