init commit w/data
This commit is contained in:
parent
6a695d4f68
commit
cac88c8b3c
2
.env.example
Normal file
2
.env.example
Normal file
@ -0,0 +1,2 @@
|
||||
MINIO_ROOT_USER=r00tz
|
||||
MINIO_ROOT_PASSWORD=YOUR_AMAZING_PASSWD_HERE
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.env
|
||||
.DS_Store
|
@ -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
15
docker-compose.yaml
Normal 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'"]
|
Loading…
Reference in New Issue
Block a user