-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
86 lines (85 loc) · 1.82 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
version: "2"
services:
mysql:
image: mysql
restart: always
environment:
- "MYSQL_ROOT_PASSWORD=secretpassword"
volumes:
- ./data/mysql:/var/lib/mysql
- ./data/prepare_db.sh:/usr/local/bin/prepare_db.sh
postfix:
build:
context: ./imgs/postfix
restart: always
ports:
- "25:25"
- "465:465"
- "587:587"
depends_on:
- spamassassin
- mysql
volumes:
- ./data/cert:/cert
- ./data/mail:/home/vmail
- ./data/postfix:/var/spool/postfix
cap_add:
- NET_ADMIN
dovecot:
build:
context: ./imgs/dovecot
restart: always
ports:
- "993:993"
- "995:995"
depends_on:
- spamassassin
- mysql
volumes:
- ./data/cert:/cert
- ./data/mail:/home/vmail
cap_add:
- NET_ADMIN
spamassassin:
build:
context: ./imgs/spamassassin
restart: always
volumes:
- ./data/spamassassin:/var/lib/spamassassin
- ./data/mail:/home/vmail
fetchmail:
build:
context: ./imgs/fetchmail
restart: always
volumes:
- ./data/mail:/home/vmail
- ./data/fetchmail.conf:/etc/mail/postfixadmin/fetchmail.conf
php:
build:
context: ./imgs/php
restart: always
volumes:
- ./data/webmail:/var/www/html
- ./data/postadmin:/var/www/html/_postadmin
depends_on:
- mysql
nginx:
image: nginx
restart: always
volumes:
- ./data/webmail:/var/www/html
- ./data/postadmin:/var/www/html/_postadmin
- ./data/nginx.conf:/etc/nginx/nginx.conf
- ./data/cert:/cert
- ./data/known:/known
ports:
- "127.0.0.1:20007:80"
depends_on:
- php
certbot:
build:
context: ./imgs/certbot
restart: always
volumes:
- ./data/cert:/etc/letsencrypt
- ./data/known:/known