-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
97 lines (97 loc) · 1.86 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
version: '2'
networks:
lb_web:
external: true
back:
driver: bridge
services:
memcached:
image: memcached
networks:
- back
db:
image: mysql
volumes:
- /dev/log:/dev/log
- ./data/mysql/runtime:/var/lib/mysql
- ./data/mysql/dump:/dump
env_file:
- ./env
environment:
MYSQL_DATABASE: vimbadmin
MYSQL_USER: vimbadmin
networks:
- back
spamassassin:
image: indiehosters/spamassassin
links:
- dovecot
volumes:
- /dev/log:/dev/log
networks:
- back
postfix:
image: indiehosters/postfix
hostname: "$VIRTUAL_HOST"
links:
- db
- spamassassin
- dovecot
volumes:
- ./opendkim:/etc/opendkim
- ./TLS:/ssl
- /dev/log:/dev/log
- ./tmp:/var/spool/postfix
ports:
- "25:25"
- "587:587"
networks:
- back
dovecot:
image: indiehosters/dovecot
links:
- db
volumes:
- ./data/dovecot/mail:/mail
- ./TLS:/ssl
- /dev/log:/dev/log
ports:
- "993:993"
- "995:995"
networks:
- back
vimbadmin:
image: indiehosters/vimbadmin
hostname: "$VIRTUAL_HOST"
links:
- db
- memcached
- postfix
volumes_from:
- dovecot
volumes:
- ./salts:/salts
- ./indie.signed.mobileconfig:/var/www/html/public/indie.signed.mobileconfig
- ./email_template:/var/www/html/application/views/mailbox/email/settings.phtml
env_file:
- ./env
environment:
- APPLICATION_ENV=production
- CLOUD_HOST
networks:
- back
web:
image: nginx
hostname: "$VIRTUAL_HOST"
links:
- vimbadmin
volumes_from:
- vimbadmin
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
environment:
- VIRTUAL_HOST
- AUTOCONFIG_HOST="$VIRTUAL_HOST"
networks:
- back
- lb_web