Browse Source

added option to set a custom data dir

Toastie 1 year ago
parent
commit
a2f5be7a38
2 changed files with 11 additions and 3 deletions
  1. 9 1
      minio/.env.template
  2. 2 2
      minio/docker-compose.yml

+ 9 - 1
minio/.env.template

@@ -1,5 +1,13 @@
+# Admin account credentials
 MINIO_ACCESS_KEY=30RandomAlphaNumericCharacters
 MINIO_SECRET_KEY=AnotherSetOf30RandomCharacters
 
-# PORT_MAPPING=192.168.10.10:9000:9000
+# Directory to store data
+# !! This directory has to be writeable by uid/gid 1000
+# sudo chown 1000:1000 ...
+# MINIO_DATA=/srv/magnetic-backup/minio
+MINIO_DATA=./data
+
+# IP / Port Mapping 
+# IP_ADDRESS=192.168.10.10:9000:9000
 PORT_MAPPING=9000:9090

+ 2 - 2
minio/docker-compose.yml

@@ -6,8 +6,8 @@ services:
     image: minio/minio
     user: 1000:1000
     volumes:
-      - ./data/data:/mnt/data
-      - ./data/home:/home/data
+      - ${MINIO_DATA}/data:/mnt/data
+      - ${MINIO_DATA}/home:/home/data
     ports:
       - ${PORT_MAPPING} 
     environment: