Browse Source

mount ssl dir

Fabian Peter Hammerle 4 years ago
parent
commit
68576a9d6d
2 changed files with 7 additions and 0 deletions
  1. 2 0
      Dockerfile
  2. 5 0
      docker-compose.yml

+ 2 - 0
Dockerfile

@@ -2,4 +2,6 @@ FROM alpine:3.10
 
 RUN apk add --no-cache dovecot
 
+VOLUME /etc/ssl/dovecot
+
 CMD ["dovecot", "-F"] 

+ 5 - 0
docker-compose.yml

@@ -1,9 +1,14 @@
 version: '2'
 
+volumes:
+  ssl:
+
 services:
   dovecot:
     build: .
     image: fphammerle/dovecot
+    volumes:
+    - ssl:/etc/ssl/dovecot:ro
     security_opt: [no-new-privileges]
     restart: unless-stopped