-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
112 lines (104 loc) · 2.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
postfix:
build: postfix
env_file: .env
volumes:
- data/ssl:/home/data/ssl
- data/mail:/home/data/mail
- /tmp/syslogdev/log:/dev/log
links:
- syslog
- postgrey
- dovecot
- spamassassin
- opendkim
- opendmarc
ports:
- "25:25"
- "587:587"
postgrey:
build: postgrey
volumes:
- /tmp/syslogdev/log:/dev/log
links:
- syslog
dovecot:
build: dovecot
environment:
# FIXME Find a way to get this working with links instead
SPAMASSASSIN_1_PORT_10025_TCP_ADDR: 172.17.42.1
volumes:
- data/ssl:/home/data/ssl
- data/mail:/home/data/mail
- data/doveadm:/home/data/doveadm
- /tmp/syslogdev/log:/dev/log
## FIXME Don't do this
#- data/dovecot-run:/var/run/dovecot
links:
- syslog
# FIXME Find a way to get this working with links instead
#- spamassassin
ports:
- "993:993"
spamassassin:
build: spamassassin
volumes:
- data/mail/spamassassin:/home/data/mail/spamassassin
- /tmp/syslogdev/log:/dev/log
links:
- syslog
- dovecot
# Make it accessible for spamc from dovecot
# FIXME Find a way to get this working with links instead
ports:
- "172.17.42.1:10025:10025"
opendkim:
build: opendkim
volumes:
- data/etc/opendkim:/etc/opendkim
- data/mail/dkim:/home/data/mail/dkim
- /tmp/syslogdev/log:/dev/log
links:
- syslog
opendmarc:
build: opendmarc
volumes:
- /tmp/syslogdev/log:/dev/log
links:
- syslog
management:
build: management
env_file: .env
environment:
DEBUG: 1
volumes:
- data/etc/nginx/conf.d:/etc/nginx/conf.d
- data/etc/opendkim:/etc/opendkim
- data/dns:/home/data/dns
- data/mail:/home/data/mail
- data/doveadm:/home/data/doveadm
- data/mailinabox:/var/lib/mailinabox
- data/ssl:/home/data/ssl
- /tmp/syslogdev/log:/dev/log
## FIXME Don't do this
#- data/dovecot-run:/var/run/dovecot
links:
- syslog
- dovecot
- opendkim
ports:
# FIXME Remove when reverse proxy is there
- "10222:10222"
syslog:
build: syslog
env_file: .env
volumes:
- /tmp/syslogdev:/dev
- log:/var/log
setup:
build: setup
env_file: .env
volumes:
- data/ssl:/home/data/ssl
- data/doveadm:/home/data/doveadm
- data/dns:/home/data/dns
- /dev/urandom:/dev/random