16 lines
601 B
YAML
16 lines
601 B
YAML
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'"]
|