This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
152 lines (135 loc) · 3.67 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: '3.7'
services:
postal-app:
image: tiredofit/postal:latest
container_name: postal-app
ports:
- 25:2525
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:postal.example.com
- traefik.port=5000
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=postal-app
volumes:
- ./logs/postal:/logs
environment:
- CONTAINER_NAME=postal-app
- 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_PASS=password
- ADMIN_FNAME=Example
- ADMIN_LNAME=Admin
##
- RABBITMQ_HOST=postal-rabbitmq
- RABBITMQ_USER=postal
- RABBITMQ_PASS=password
- RABBITMQ_VHOST=/postal
- ENABLE_SPAMASSASSIN=false
- SPAMASSASSIN_HOST=postal-spamassassin
- ENABLE_RSPAMD=false
- RSPAMD_HOST=postal-rspamd
- ENABLE_CLAMAV=false
- CLAMAV_HOST=postal-clamav
- DNS_HOSTNAME=postal.example.com
- DNS_MX=mx.example.com
- DNS_RETURN_PATH=rp.example.com
- DNS_ROUTE_DOMAIN=routes.postal.example.com
- DNS_TRACK_DOMAIN=track.postal.example.com
- DNS_SPF=spf.postal.example.com
- DNS_DKIM_IDENTIFIER=postal
- DNS_DOMAIN_VERIFY_PREFIX=example-verification
- SMTP_SERVER_ENABLE_TLS=false
- 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_HOST=mx.example.com
- WEB_PROTOCOL=https
networks:
- proxy
- services
restart: always
postal-db:
image: tiredofit/mariadb:latest
container_name: postal-db
volumes:
- ./db:/var/lib/mysql
environment:
- ROOT_PASS=rootpassword
- DB_NAME=postal
- DB_USER=postal
- DB_PASS=postalpass
- CONTAINER_NAME=postal-db
networks:
- services
restart: always
postal-db-backup:
image: tiredofit/db-backup:latest
container_name: postal-db-backup
links:
- postal-db
volumes:
- ./dbbackup:/backup
environment:
- CONTAINER_NAME=postal-db-backup
- DB_HOST=postal-db
- DB_TYPE=mariadb
- DB_NAME=postal
- DB_USER=postal
- DB_PASS=postalpass
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- COMPRESSION=ZSTD
- MD5=TRUE
networks:
- services
restart: always
postal-rabbitmq:
container_name: postal-rabbitmq
image: tiredofit/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=postal
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_DEFAULT_VHOST=/postal
- CONTAINER_NAME=postal-rabbitmq
networks:
- services
restart: always
postal-clamav:
container_name: postal-clamav
image: tiredofit/clamav
volumes:
- ./data/clamav:/data
- ./logs/clamav:/var/log/clamav
environment:
- CONTAINER_NAME=postal-clamav
networks:
- services
restart: always
postal-spamassassin:
image: tiredofit/spamassassin
container_name: postal-spamassassin-app
volumes:
- ./logs/spamassassin:/var/log/spamassassin
- ./data/spamassassin/conf:/etc/mail/spamassassin
- ./data/spamassassin/data:/var/lib/spamassassin
environment:
- CONTAINER_NAME=postal-spamassassin
networks:
- services
restart: always
networks:
proxy:
external: true
services:
external: true