From cac88c8b3c97080821405fb9e147aa4c7eaba62b Mon Sep 17 00:00:00 2001 From: Doug Masiero Date: Sun, 8 Jun 2025 23:53:26 -0400 Subject: [PATCH] init commit w/data --- .env.example | 2 ++ .gitignore | 2 ++ README.md | 3 +++ docker-compose.yaml | 15 +++++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 docker-compose.yaml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..c565c39 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +MINIO_ROOT_USER=r00tz +MINIO_ROOT_PASSWORD=YOUR_AMAZING_PASSWD_HERE diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3323b34 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +.DS_Store diff --git a/README.md b/README.md index 45bae68..d633806 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # minio +[Minio Documentation](https://min.io/docs/minio/container/index.html) + +This deployment relies on an NFS mount on host system for container /data path. diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..33fffc6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +services: + minio: + image: minio/minio + container_name: minio + restart: always + ports: + - "9000:9000" + - "9001:9001" + environment: + MINIO_ROOT_USER: ${MINIO_ROOT_USER} + MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} + volumes: + - /mnt/nfs/moeny-minio:/data + # Check if NFS volume is mounted by verifying .must_be_nfs file exists before starting MinIO + entrypoint: ["/bin/sh", "-c", "if [ ! -f /data/.must_be_nfs ]; then echo 'ERROR: NFS not mounted - missing .must_be_nfs file' && exit 1; fi && exec /usr/bin/minio server /data --console-address ':9001'"]