Sfoglia il codice sorgente

moved global sieve inside container instead of volume

tags/v1.0.0
Robin Thoni 8 anni fa
parent
commit
87b9bd654f

+ 0
- 0
data/dovecot/sieve/include/.gitkeep Vedi File


+ 2
- 10
docker-compose.yml Vedi File

@@ -11,7 +11,7 @@ services:
11 11
         volumes:
12 12
             - ./data/postgresql/data:/var/lib/postgresql/data
13 13
         ports:
14
-            - "34000:5432"
14
+            - "127.0.0.1:34000:5432"
15 15
         env_file:
16 16
             - env
17 17
 
@@ -23,7 +23,7 @@ services:
23 23
                 aliases:
24 24
                     - postfixadmin.mx.internal.docker
25 25
         ports:
26
-            - "34001:80"
26
+            - "127.0.0.1:34001:80"
27 27
         env_file:
28 28
             - env
29 29
 
@@ -34,9 +34,6 @@ services:
34 34
             mx.internal.docker:
35 35
                 aliases:
36 36
                     - postfix.mx.internal.docker
37
-            mx-local.internal.docker:
38
-                aliases:
39
-                    - smtp.mx-local.internal.docker
40 37
         ports:
41 38
             - "0.0.0.0:25:25"
42 39
             - "0.0.0.0:587:587"
@@ -50,12 +47,8 @@ services:
50 47
             mx.internal.docker:
51 48
                 aliases:
52 49
                     - dovecot.mx.internal.docker
53
-            mx-local.internal.docker:
54
-                aliases:
55
-                    - imap.mx-local.internal.docker
56 50
         volumes:
57 51
             - ./data/dovecot/email:/var/email
58
-            - ./data/dovecot/sieve:/etc/dovecot/sieve
59 52
         ports:
60 53
             - "0.0.0.0:110:110"
61 54
             - "0.0.0.0:143:143"
@@ -79,4 +72,3 @@ services:
79 72
 
80 73
 networks:
81 74
     mx.internal.docker:
82
-    mx-local.internal.docker:

+ 3
- 1
dovecot/Dockerfile Vedi File

@@ -19,9 +19,11 @@ COPY ./exim4/ /etc/exim4/
19 19
 RUN chown root:Debian-exim /etc/exim4/passwd.client &&\
20 20
     update-exim4.conf
21 21
 
22
+COPY ./sieve/ /etc/dovecot/sieve/
23
+
22 24
 COPY ./run.sh /run.sh
23 25
 
24
-VOLUME ["/var/email", "/etc/dovecot/sieve"]
26
+VOLUME ["/var/email"]
25 27
 
26 28
 EXPOSE 110 143 993 995 4190
27 29
 

data/dovecot/sieve/.gitkeep → dovecot/sieve/after/.gitkeep Vedi File


data/dovecot/sieve/after/.gitkeep → dovecot/sieve/before/.gitkeep Vedi File


data/dovecot/sieve/before/spam.sieve → dovecot/sieve/before/spam.sieve Vedi File


data/dovecot/sieve/before/.gitkeep → dovecot/sieve/include/.gitkeep Vedi File


Loading…
Annulla
Salva