-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 906 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 906 Bytes
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
version: '3.8'
services:
postfix:
image: postfix
restart: always
env_file: .env
environment:
- TZ=$TZ
ports:
- "${LISTEN_IP}:25:25/tcp"
- "${LISTEN_IP}:587:587/tcp"
volumes:
- "/etc/postfix:/etc/postfix"
- "/etc/letsencrypt/:/etc/letsencrypt"
- "/var/spool/postfix:/var/spool/postfix"
logging:
driver: syslog
options:
syslog-facility: mail
dovecot:
image: dovecot
restart: always
depends_on:
- "postfix"
env_file: .env
environment:
- TZ=$TZ
- SUBMISSION_HOST=postfix
ports:
- "${LISTEN_IP}:143:143/tcp"
volumes:
- "/etc/dovecot:/etc/dovecot"
- "/etc/letsencrypt:/etc/letsencrypt"
- "/var/mail:/var/mail"
- "/var/spool/postfix/private:/var/spool/postfix/private"
logging:
driver: syslog
options:
syslog-facility: mail