init commit w/data

This commit is contained in:
Doug Masiero 2025-06-08 23:53:26 -04:00
parent 6a695d4f68
commit cac88c8b3c
4 changed files with 22 additions and 0 deletions

2
.env.example Normal file
View File

@ -0,0 +1,2 @@
MINIO_ROOT_USER=r00tz
MINIO_ROOT_PASSWORD=YOUR_AMAZING_PASSWD_HERE

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
.DS_Store

View File

@ -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.

15
docker-compose.yaml Normal file
View File

@ -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'"]