|
@@ -5,9 +5,9 @@ services:
|
5
|
5
|
build: ./postgresql
|
6
|
6
|
container_name: mx-postgresql
|
7
|
7
|
networks:
|
8
|
|
- internal.docker:
|
|
8
|
+ mx.internal.docker:
|
9
|
9
|
aliases:
|
10
|
|
- - postgresql.internal.docker
|
|
10
|
+ - postgresql.mx.internal.docker
|
11
|
11
|
volumes:
|
12
|
12
|
- ./data/postgresql/data:/var/lib/postgresql/data
|
13
|
13
|
ports:
|
|
@@ -19,9 +19,9 @@ services:
|
19
|
19
|
build: ./postfixadmin
|
20
|
20
|
container_name: mx-postfixadmin
|
21
|
21
|
networks:
|
22
|
|
- internal.docker:
|
|
22
|
+ mx.internal.docker:
|
23
|
23
|
aliases:
|
24
|
|
- - postfixadmin.internal.docker
|
|
24
|
+ - postfixadmin.mx.internal.docker
|
25
|
25
|
ports:
|
26
|
26
|
- "34001:80"
|
27
|
27
|
env_file:
|
|
@@ -31,9 +31,12 @@ services:
|
31
|
31
|
build: ./postfix
|
32
|
32
|
container_name: mx-postfix
|
33
|
33
|
networks:
|
34
|
|
- internal.docker:
|
|
34
|
+ mx.internal.docker:
|
35
|
35
|
aliases:
|
36
|
|
- - postfix.internal.docker
|
|
36
|
+ - postfix.mx.internal.docker
|
|
37
|
+ mx-local.internal.docker:
|
|
38
|
+ aliases:
|
|
39
|
+ - smtp.mx-local.internal.docker
|
37
|
40
|
ports:
|
38
|
41
|
- "0.0.0.0:25:25"
|
39
|
42
|
- "0.0.0.0:587:587"
|
|
@@ -44,9 +47,12 @@ services:
|
44
|
47
|
build: ./dovecot
|
45
|
48
|
container_name: mx-dovecot
|
46
|
49
|
networks:
|
47
|
|
- internal.docker:
|
|
50
|
+ mx.internal.docker:
|
|
51
|
+ aliases:
|
|
52
|
+ - dovecot.mx.internal.docker
|
|
53
|
+ mx-local.internal.docker:
|
48
|
54
|
aliases:
|
49
|
|
- - dovecot.internal.docker
|
|
55
|
+ - imap.mx-local.internal.docker
|
50
|
56
|
volumes:
|
51
|
57
|
- ./data/dovecot/email:/var/email
|
52
|
58
|
- ./data/dovecot/sieve:/etc/dovecot/sieve
|
|
@@ -63,13 +69,14 @@ services:
|
63
|
69
|
build: ./opendkim
|
64
|
70
|
container_name: mx-opendkim
|
65
|
71
|
networks:
|
66
|
|
- internal.docker:
|
|
72
|
+ mx.internal.docker:
|
67
|
73
|
aliases:
|
68
|
|
- - opendkim.internal.docker
|
|
74
|
+ - opendkim.mx.internal.docker
|
69
|
75
|
volumes:
|
70
|
76
|
- ./data/opendkim/keys:/etc/opendkim/keys
|
71
|
77
|
env_file:
|
72
|
78
|
- env
|
73
|
79
|
|
74
|
80
|
networks:
|
75
|
|
- internal.docker:
|
|
81
|
+ mx.internal.docker:
|
|
82
|
+ mx-local.internal.docker:
|