diff --git a/.gitignore b/.gitignore index caec47b..9d8426d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ matrix/nginx/www/ matrix/synapse/media_store/ traefik/certs/ + +minio/data diff --git a/README.md b/README.md index 549c422..78e488d 100644 --- a/README.md +++ b/README.md @@ -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 + diff --git a/minio/.env b/minio/.env new file mode 100644 index 0000000..7fddce2 --- /dev/null +++ b/minio/.env @@ -0,0 +1,2 @@ +MINIO_ROOT_USER=test +MINIO_ROOT_PASSWORD=testtest diff --git a/minio/docker-compose.yml b/minio/docker-compose.yml new file mode 100644 index 0000000..a5ab999 --- /dev/null +++ b/minio/docker-compose.yml @@ -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