scripts/lech/docker/minio.sh

32 lines
899 B
Bash
Executable File

#!/bin/bash
set -e
up () {
docker run \
--detach \
--name minio \
--restart unless-stopped \
--env-file minio.env \
--env MINIO_BROWSER_REDIRECT_URL=https://s3.bigcavemaps.com \
--env MINIO_ROOT_USER=admin \
--env MINIO_SERVER_URL=https://s3.bigcavemaps.com:9000 \
--volume /mammoth/minio:/data:rw \
--volume /mammoth/k8s-config/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/s3.bigcavemaps.com/s3.bigcavemaps.com.crt:/certs/public.crt:ro \
--volume /mammoth/k8s-config/caddy/data/caddy/certificates/acme.zerossl.com-v2-dv90/s3.bigcavemaps.com/s3.bigcavemaps.com.key:/certs/private.key:ro \
--publish 9000:9000 \
--publish 9090:9090 \
quay.io/minio/minio:latest server /data --console-address ":9090" --certs-dir /certs
}
down () {
docker stop minio || true
docker rm minio || true
}
logs () {
docker logs --follow minio
}
$@