Browse Source

included docker-compose.override.yml

toastie89 1 year ago
parent
commit
2363a0727c
2 changed files with 29 additions and 1 deletions
  1. 0 1
      minio/.gitignore
  2. 29 0
      minio/docker-compose.override.yml

+ 0 - 1
minio/.gitignore

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

+ 29 - 0
minio/docker-compose.override.yml

@@ -0,0 +1,29 @@
+version: '3.7'
+services:
+  minio-getkeys:
+    container_name: minio-getkeys
+    hostname: minio-getkeys
+    image: alpine
+    user: 0:0  # we need root to read the key/cert
+    restart: on-failure:3
+    # ToDo: Replace with variable
+    volumes:
+      - ${CERT_PATH}:/mnt/src:ro
+      - ./data/home/.minio/certs:/mnt/dst:rw
+    command: >
+              sh -c 'apk add --no-cache inotify-tools
+              && while true;
+              do inotifywait /mnt/src/fullchain.pem --event modify 
+              && date +%x_%r 
+              && cp /mnt/src/fullchain.pem  /mnt/dst/public.crt
+              && cp /mnt/src/key.pem        /mnt/dst/private.key
+              && chown 1000:1000            /mnt/dst/*.*
+              && chmod 600                  /mnt/dst/*.*; done'
+  minio:
+    networks:
+      - docker-dmz
+networks:
+  docker-dmz:
+    external:
+      name: docker-dmz
+