35 lines
721 B
YAML
35 lines
721 B
YAML
version: '3'
|
|
|
|
services:
|
|
app:
|
|
image: 'minio/minio:latest'
|
|
command: 'server /data'
|
|
|
|
deploy:
|
|
mode: 'replicated'
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- 'node.labels.class.minio==true'
|
|
labels:
|
|
- 'traefik.enable=true'
|
|
- 'traefik.http.routers.minio.rule=Host(`s3.rustybever.be`)'
|
|
- 'traefik.http.routers.minio.tls=true'
|
|
- 'traefik.http.routers.minio.tls.certresolver=letsEncrypt'
|
|
- 'traefik.http.services.minio.loadbalancer.server.port=9000'
|
|
|
|
environment:
|
|
- 'MINIO_ROOT_USER'
|
|
- 'MINIO_ROOT_PASSWORD'
|
|
networks:
|
|
- 'public'
|
|
volumes:
|
|
- 'data:/data'
|
|
|
|
networks:
|
|
public:
|
|
external: true
|
|
|
|
volumes:
|
|
data:
|