Added minio stack

master
Jef Roosens 2022-01-03 13:29:17 +01:00
parent 353a3f5da2
commit eba1adfaf0
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 34 additions and 0 deletions

34
stacks/minio.yml 100644
View File

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