Browse Source

added port mapping as variable

Toastie 1 year ago
parent
commit
8e6f17c607
3 changed files with 5 additions and 1 deletions
  1. 3 0
      minio/.env.template
  2. 1 0
      minio/.gitignore
  3. 1 1
      minio/docker-compose.yml

+ 3 - 0
minio/.env.template

@@ -1,2 +1,5 @@
 MINIO_ACCESS_KEY=30RandomAlphaNumericCharacters
 MINIO_SECRET_KEY=AnotherSetOf30RandomCharacters
+
+# PORT_MAPPING=192.168.10.10:9000:9000
+PORT_MAPPING=9000:9090

+ 1 - 0
minio/.gitignore

@@ -1 +1,2 @@
 .env
+docker-compose.override.yml

+ 1 - 1
minio/docker-compose.yml

@@ -9,7 +9,7 @@ services:
       - ./data/data:/mnt/data
       - ./data/home:/home/data
     ports:
-      - "9000:9000"
+      - ${PORT_MAPPING} 
     environment:
       MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
       MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}