-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
minio.yml
34 lines (31 loc) · 1.5 KB
/
minio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# DOMAIN=example.com DOMAIN_CONSOLE=console.example.com docker stack deploy -c minio.yml minio
services:
web:
image: minio/minio:${VERSION:-RELEASE.2024-05-10T01-41-38Z}
command: server /data --console-address ":9001"
volumes:
- ${VOLUME_PATH}data:/data
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER:-admin}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD:-myp@ssw0rd}
- MINIO_BROWSER_REDIRECT_URL=${SCHEME:-https}://${DOMAIN_CONSOLE:?}
- MINIO_SERVER_URL=${SCHEME:-https}://${DOMAIN:-minio.localhost}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.minio-${NUMBER:-1}.rule=Host(`${DOMAIN:-minio.localhost}`)
- traefik.http.routers.minio-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.minio-${NUMBER:-1}.service=minio-${NUMBER:-1}
- traefik.http.routers.minio-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.minio-${NUMBER:-1}.loadbalancer.server.port=9000
- traefik.http.routers.minio-console-${NUMBER:-1}.rule=Host(`${DOMAIN_CONSOLE:?}`)
- traefik.http.routers.minio-console-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.minio-console-${NUMBER:-1}.service=minio-console-${NUMBER:-1}
- traefik.http.routers.minio-console-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.minio-console-${NUMBER:-1}.loadbalancer.server.port=9001
volumes:
data:
networks:
default:
external: true
name: traefik-net