-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (78 loc) · 2.79 KB
/
docker-compose.yml
File metadata and controls
81 lines (78 loc) · 2.79 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
services:
dovecot:
build:
context: .
dockerfile: images/dovecot/Dockerfile
image: dovecot
restart: always
volumes:
- ./data/mail:/var/mail
- ./etc/dovecot:/etc/dovecot
- /etc/letsencrypt/:/etc/certificates
# or
# - /etc/letsencrypt/live/<servername>:/etc/certificates/live/<servername>
# - /etc/letsencrypt/archive/<servername>:/etc/certificates/archive/<servername>
ports:
- "143:143"
- "993:993"
- "4190:4190"
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
default:
opendkim:
build:
context: .
dockerfile: images/opendkim/Dockerfile
image: opendkim
restart: always
volumes:
- ./data/opendkim:/etc/dkimkeys
- ./etc/opendkim:/etc/opendkim
# or
# - /etc/letsencrypt/live/<servername>:/etc/certificates/live/<servername>
# - /etc/letsencrypt/archive/<servername>:/etc/certificates/archive/<servername>
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
default:
postfix:
build:
context: .
dockerfile: images/postfix/Dockerfile
image: postfix
restart: always
volumes:
- ./data/postfix:/var/spool/postfix
- ./etc/postfix/gomplate.yaml:/etc/postfix/gomplate.yaml
- ./etc/postfix/main.cf.tmpl:/etc/postfix/main.cf.tmpl
- ./etc/postfix/master.cf:/etc/postfix/master.cf
- ./etc/postfix/mysql-virtual_alias_maps.cf.tmpl:/etc/postfix/mysql-virtual_alias_maps.cf.tmpl
- ./etc/postfix/mysql-virtual_mailbox_domains.cf.tmpl:/etc/postfix/mysql-virtual_mailbox_domains.cf.tmpl
- ./etc/postfix/mysql-virtual_mailbox_maps.cf.tmpl:/etc/postfix/mysql-virtual_mailbox_maps.cf.tmpl
- ./etc/postfix/mysql-virtual_sender_permissions.cf.tmpl:/etc/postfix/mysql-virtual_sender_permissions.cf.tmpl
- /etc/letsencrypt/:/etc/certificates
# or
# - /etc/letsencrypt/live/<servername>:/etc/certificates/live/<servername>
# - /etc/letsencrypt/archive/<servername>:/etc/certificates/archive/<servername>
ports:
- "25:25"
- "587:587"
- "465:465"
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
default:
ipv4_address: 172.13.27.200
networks:
default:
ipam:
driver: default
config:
- subnet: 172.13.27.0/24