Toastie 1 year ago
parent
commit
c061235049
5 changed files with 30 additions and 0 deletions
  1. 2 0
      minio/.env.template
  2. 1 0
      minio/.gitignore
  3. 3 0
      minio/data/data/.gitignore
  4. 3 0
      minio/data/home/.gitignore
  5. 21 0
      minio/docker-compose.yml

+ 2 - 0
minio/.env.template

@@ -0,0 +1,2 @@
+MINIO_ACCESS_KEY=30RandomAlphaNumericCharacters
+MINIO_SECRET_KEY=AnotherSetOf30RandomCharacters

+ 1 - 0
minio/.gitignore

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

+ 3 - 0
minio/data/data/.gitignore

@@ -0,0 +1,3 @@
+*
+*/
+!.gitignore

+ 3 - 0
minio/data/home/.gitignore

@@ -0,0 +1,3 @@
+*
+*/
+!.gitignore

+ 21 - 0
minio/docker-compose.yml

@@ -0,0 +1,21 @@
+version: '3.7'
+services:
+  minio1:
+    container_name: minio
+    hostname: minio
+    image: minio/minio
+    user: 1000:1000
+    volumes:
+      - ./data/data:/mnt/data
+      - ./data/home:/home/data
+    ports:
+      - "9000:9000"
+    environment:
+      MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
+      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
+    command: server /mnt/data 
+    healthcheck:
+      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
+      interval: 30s
+      timeout: 20s
+      retries: 3