Browse Source

moved global sieve inside container instead of volume

tags/v1.0.0
Robin Thoni 8 years ago
parent
commit
87b9bd654f

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


+ 2
- 10
docker-compose.yml View File

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

+ 3
- 1
dovecot/Dockerfile View File

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

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


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


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


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


Loading…
Cancel
Save