minio.yaml
Stack do storage minio para docker swarm.
This commit is contained in:
55
minio/minio.yaml
Normal file
55
minio/minio.yaml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
services:
|
||||||
|
minio:
|
||||||
|
image: minio/minio:latest
|
||||||
|
command: server /data --console-address ":9001"
|
||||||
|
networks:
|
||||||
|
- traefik_network
|
||||||
|
volumes:
|
||||||
|
- minio_data:/data
|
||||||
|
secrets:
|
||||||
|
- minio_root_password
|
||||||
|
environment:
|
||||||
|
MINIO_ROOT_USER: raiffy
|
||||||
|
MINIO_ROOT_PASSWORD_FILE: /run/secrets/minio_root_password
|
||||||
|
MINIO_BROWSER_REDIRECT_URL: https://console.omegaflow.com.br
|
||||||
|
MINIO_SERVER_URL: https://storage.omegaflow.com.br
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.2'
|
||||||
|
memory: 512M
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
# Rota para o endereço do storage do minio
|
||||||
|
- "traefik.http.routers.minio_storage.rule=Host(`storage.omegaflow.com.br`)"
|
||||||
|
- "traefik.http.routers.minio_storage.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.minio_storage.tls=true"
|
||||||
|
- "traefik.http.routers.minio_storage.tls.certresolver=lets-encrypt"
|
||||||
|
- "traefik.http.routers.minio_storage.service=minio_storage"
|
||||||
|
- "traefik.http.services.minio_storage.loadbalancer.server.port=9000"
|
||||||
|
# Rota para o Console Web do minio
|
||||||
|
- "traefik.http.routers.minio_console.rule=Host(`console.omegaflow.com.br`)"
|
||||||
|
- "traefik.http.routers.minio_console.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.minio_console.tls=true"
|
||||||
|
- "traefik.http.routers.minio_console.tls.certresolver=lets-encrypt"
|
||||||
|
- "traefik.http.routers.minio_console.service=minio_console"
|
||||||
|
- "traefik.http.services.minio_console.loadbalancer.server.port=9001"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik_network:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
minio_data:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
minio_root_password:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user