-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcompose.yaml
More file actions
98 lines (91 loc) · 2.69 KB
/
compose.yaml
File metadata and controls
98 lines (91 loc) · 2.69 KB
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
version: '3.9'
services:
database:
image: mariadb:10.5
container_name: mailserver-database
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: example_root_password
volumes:
- db_data:/var/lib/mysql
- ./mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
postfix:
image: technicalguru/mailserver-postfix
container_name: mailserver-postfix
restart: unless-stopped
environment:
PF_DB_HOST: mailserver-database
PF_DB_NAME: postfix
PF_DB_USER: postfix
PF_DB_PASS: example_postfix_password
PF_MYDOMAIN: example.com
PF_MYHOSTNAME: mx.example.com
PF_DKIM_SERVICE_NAME: postfix-opendkim
PF_DKIM_SERVICE_PORT: "41001"
ports:
- "25:25"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
volumes:
- postfix_data:/var/mail
# if needed
# - /etc/letsencrypt/live/example.com/fullchain.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem:ro
# - /etc/letsencrypt/live/example.com/privkey.pem:/etc/ssl/private/ssl-cert-snakeoil.key:ro
opendkim:
image: technicalguru/mailserver-opendkim
container_name: mailserver-opendkim
restart: unless-stopped
environment:
DKIM_DB_HOST: mailserver-database
DKIM_DB_NAME: opendkim
DKIM_DB_USER: opendkim
DKIM_DB_PASS: example_opendkim_password
DKIM_DOMAIN: example.com
volumes:
- opendkim_data:/etc/opendkim
amavis:
image: technicalguru/mailserver-amavis
container_name: mailserver-amavis
restart: unless-stopped
ports:
- "10024:10024"
environment:
- AMAVIS_LOGLEVEL=1
postfixadmin:
image: technicalguru/mailserver-postfixadmin
container_name: mailserver-postfixadmin
restart: unless-stopped
environment:
PFA_SETUP_PASS: example_root_password
PFA_DB_USER: postfix
PFA_DB_HOST: mailserver-database
PFA_DB_PASS: example_postfix_password
PFA_DB_NAME: postfix
PFA_POSTFIX_SERVER: example.com
PFA_ABUSE_EMAIL: admin@example.com
PFA_HOSTMASTER_EMAIL: admin@example.com
PFA_POSTMASTER_EMAIL: admin@example.com
PFA_WEBMASTER_EMAIL: admin@example.com
ports:
- "8080:80"
roundcube:
image: technicalguru/mailserver-roundcube
container_name: mailserver-roundcube
restart: unless-stopped
environment:
RC_DB_USER: roundcube
RC_DB_HOST: mailserver-database
RC_DB_PASS: example_roundcube_password
RC_DB_NAME: roundcube
RC_DES_KEY: thiskeyisusedtoencrypt24
RC_IMAP_SERVER_NAME: mx.example.com
RC_SMTP_SERVER_NAME: mx.example.com
RC_DEFAULT_DOMAIN: example.com
ports:
- "80:80"
volumes:
db_data:
postfix_data:
opendkim_data: