Created
April 5, 2024 21:10
-
-
Save devgiordane/3acb6f535475b027daa0dec3ac9d05a4 to your computer and use it in GitHub Desktop.
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
version: "3.8" | |
services: | |
minio: | |
image: quay.io/minio/minio | |
command: server /data --console-address ":9001" | |
networks: | |
- traefik_public | |
volumes: | |
- minio_data:/data | |
environment: | |
MINIO_ROOT_USER: <USUARIO_AQUI> | |
MINIO_ROOT_PASSWORD: <SENHA_AQUI> | |
MINIO_BROWSER_REDIRECT_URL: https://console.SEU_DOMINIO.com.br | |
MINIO_SERVER_URL: https://s3.SEU_DOMINIO.com.br | |
deploy: | |
mode: replicated | |
replicas: 1 | |
placement: | |
constraints: | |
- node.role == manager | |
resources: | |
limits: | |
cpus: '0.2' | |
memory: 512M | |
labels: | |
- traefik.enable=true | |
#SSL 1 endereço publico do Minio | |
- traefik.http.routers.minio_s3.rule=Host(`s3.SEU_DOMINIO.com.br`) | |
- traefik.http.routers.minio_s3.tls.certresolver=le | |
- traefik.http.routers.minio_s3.entrypoints=websecure | |
- traefik.http.routers.minio_s3.tls=true | |
- traefik.http.routers.minio_s3.service=minio_s3 | |
- traefik.http.services.minio_s3.loadbalancer.server.port=9000 | |
#SSL 2 endereço console do minio | |
- traefik.http.routers.minio_console.rule=Host(`console.SEU_DOMINIO.com.br`) | |
- traefik.http.routers.minio_console.tls.certresolver=le | |
- traefik.http.routers.minio_console.entrypoints=websecure | |
- traefik.http.routers.minio_console.tls=true | |
- traefik.http.routers.minio_console.service=minio_console | |
- traefik.http.services.minio_console.loadbalancer.server.port=9001 | |
volumes: | |
minio_data: | |
external: true | |
networks: | |
traefik_public: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment