forked from frankh/docker-compose-mailbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.2 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
mail:
build: mail
env_file:
- settings.env
links:
- mysql
- opendkim
- spamassassin
volumes:
- "./data/certs:/etc/certs"
volumes_from:
- storagebackup
ports:
- "25:25"
- "587:587"
- "993:993"
opendkim:
build: opendkim
env_file:
- settings.env
expose:
- "8891"
volumes:
- "./data/certs:/etc/certs"
# If you only want the mail server and no webmail/admin simply remove webserver and memcache
webserver:
build: webserver
env_file:
- settings.env
ports:
- "80:80"
volumes:
- "./data/certs:/etc/certs"
volumes_from:
- storagebackup
links:
- mysql
- memcache
- mail
spamassassin:
build: spamassassin
expose:
- "783"
volumes_from:
- storagebackup
memcache:
build: memcache
expose:
- "11211"
mysql:
build: mysql
environment:
- "MYSQL_ROOT_PASSWORD=password"
env_file:
- settings.env
volumes:
- "./data/backup:/backup"
expose:
- "3306"
# Storage container for vmail that also creates daily backups
storagebackup:
build: storagebackup
env_file:
- settings.env
links:
- mysql
volumes:
- "/var/vmail"
- "./data/backup:/backup"
- "/var/spamassassin"