Feat: instance de minio

This commit is contained in:
Bertrand Benjamin 2022-02-19 05:46:20 +01:00
parent 80a6fabc66
commit 3084e8392d
4 changed files with 34 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ matrix/nginx/www/
matrix/synapse/media_store/
traefik/certs/
minio/data

View File

@ -29,3 +29,9 @@ Make some direcories
https://gist.github.com/matusnovak/37109e60abe79f4b59fc9fbda10896da
## Minio
Quelques commandes utiles
docker run -ti --rm --network docker_lan -v /docker/data/mc:/root/.mc minio/mc alias set minio http://minio.combava.lan:9000 admin testtest --api s3v4

2
minio/.env Normal file
View File

@ -0,0 +1,2 @@
MINIO_ROOT_USER=test
MINIO_ROOT_PASSWORD=testtest

24
minio/docker-compose.yml Normal file
View File

@ -0,0 +1,24 @@
version: '3'
services:
minio:
image: minio/minio
volumes:
- ./data:/data
env_file:
- .env
ports:
- "9000:9000"
- "9001:9001"
command: server --console-address ":9001" --address ":9000" /data
labels:
- "traefik.enable=true"
- "traefik.http.services.minio.loadbalancer.server.port=8008"
- "traefik.http.routers.minio.rule=Host(`minio.combava.lan`)"
- "traefik.http.routers.minio.entrypoints=https"
- "traefik.http.routers.minio.tls=true"
networks:
- gateway
networks:
gateway:
external: true