forked from tiredofit/docker-postal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (112 loc) · 3.4 KB
/
docker-compose.yml
File metadata and controls
126 lines (112 loc) · 3.4 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '3.7'
services:
postal-app:
image: siebsie23/docker-postal:latest
container_name: postal-app
ports:
- "25:25"
labels:
- traefik.docker.network=traefik-public
- traefik.http.routers.postal.rule=Host(`postal.example.com`)
- traefik.http.routers.postal.entrypoints=websecure
- traefik.http.routers.postal.tls=true
- traefik.http.routers.postal.tls.certresolver=leresolver
- traefik.http.services.postal-app.loadbalancer.server.port=5000
volumes:
- ./logs/postal:/logs
- ./config/postal:/config
- /root/traefik/certs:/certs
environment:
- CONTAINER_NAME=postal-app
- CONTAINER_ENABLE_MONITORING=false
- DB_HOST=postal-db
- DB_PORT=3306
- DB_NAME=postal
- DB_USER=postal
- DB_PASS=postalpass
## A great idea is to delete this block after first install.
- DB_ROOT_PASS=rootpassword
- ADMIN_EMAIL=example@hostname.com
- ADMIN_PASS=password
- ADMIN_FNAME=Example
- ADMIN_LNAME=Admin
##
- ENABLE_SPAMASSASSIN=true
- SPAMASSASSIN_HOST=postal-spamassassin
- ENABLE_CLAMAV=true
- CLAMAV_HOST=postal-clamav
- DNS_HELO_HOSTNAME=postal.example.com
- DNS_MX=postal.example.com
- DNS_RETURN_PATH_DOMAIN=rp.postal.example.com
- DNS_ROUTE_DOMAIN=routes.postal.example.com
- DNS_TRACK_DOMAIN=postal.example.com
- DNS_SPF_INCLUDE=spf.postal.example.com
- DNS_DKIM_IDENTIFIER=postal
- DNS_DOMAIN_VERIFY_PREFIX=kd-verify
- SMTP_SERVER_ENABLE_TLS=true
- SMTP_SERVER_TLS_CERT=/certs/certs/postal.example.com.crt
- SMTP_SERVER_TLS_KEY=/certs/private/postal.example.com.key
- SMTP_FROM_ADDRESS=noreply@example.com
- SMTP_FROM_NAME=Postal
- SMTP_HOST=127.0.0.1
- SMTP_USER= ## Fill these in after you have a working installation and server to be able to invite users
- SMTP_PASS= ##
- WEB_HOSTNAME=postal.example.com
- WEB_PROTOCOL=https
networks:
- traefik-public
- services
restart: always
postal-db:
image: tiredofit/mariadb:10.11
container_name: postal-db
volumes:
- ./dbbackup:/backup
- ./db:/var/lib/mysql
- ./config/mariadb:/etc/mysql/conf.d
environment:
- DB_CONFIGURATION=default
- ROOT_PASS=postalrpass
- DB_NAME=postal
- DB_USER=postal
- DB_PASS=postalpass
- DB_BACKUP=true
- DB_BACKUP_NAME=postal
- DB_BACKUP_USER=postal
- DB_BACKUP_PASS=postalpass
- DB_BACKUP_CLEANUP_TIME=10080
- CONTAINER_NAME=postal-db
- CONTAINER_ENABLE_MONITORING=false
networks:
- services
restart: always
postal-clamav:
container_name: postal-clamav
image: tiredofit/clamav
volumes:
- ./data/clamav:/data/
- ./logs/clamav:/logs/
environment:
- CONTAINER_NAME=postal-clamav
- CONTAINER_ENABLE_MONITORING=false
networks:
- services
restart: always
postal-spamassassin:
image: tiredofit/spamassassin
container_name: postal-spamassassin
volumes:
- ./logs/spamassassin:/logs/
- ./data/spamassassin/conf:/config/
- ./data/spamassassin/data:/data/
environment:
- CONTAINER_NAME=postal-spamassassin
- CONTAINER_ENABLE_MONITORING=false
networks:
- services
restart: always
networks:
traefik-public:
external: true
services:
driver: bridge