-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.hub.yml
65 lines (61 loc) · 1.93 KB
/
docker-compose.hub.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
version: "3"
services:
mail:
image: astzweig/wildduck
ports:
- "25:25"
- "5438:443"
- "465:465"
- "993:993"
networks:
- backend
- frontend
volumes:
- ./ssl/certs/archive/example.com/fullchain1.pem:/etc/tls-keys/pub.pem:ro
- ./ssl/certs/archive/example.com/privkey1.pem:/etc/tls-keys/prv.pem:ro
- mailconfig:/etc/nodemailer
depends_on:
- redis
- mongo
environment:
- FQDN=mailserver1.example.com
- MAIL_DOMAIN=example.com
- TLS_KEY=/etc/tls-keys/prv.pem # If you want to activate SSL for the mail services
- TLS_CERT=/etc/tls-keys/pub.pem # you will need to provide these two variables.
- API_USE_HTTPS=true
- API_URL=https://mailserver1.astzweig.de:5438
- API_TOKEN_SECRET=PLEASE_REPLACE_THIS
# Uncomment the following lines, if you want a letsencrypt certificate and
# your DNS provider is supported by the python lexicon dns tool.
# See github.com/astzweig/docker-letsencrypt for more information on this.
#
# ssl:
# image: astzweig/letsencrypt
# volumes:
# - ./ssl/certs:/etc/letsencrypt
# environment:
# - EMAIL=your-email-for-letsencrypt
# - PROVIDER=cloudflare
# - PROVIDER_DNS_DELAY=18
# - LEXICON_CLOUDFLARE_USERNAME=easyname-kontakt@astzweig.de
# - LEXICON_CLOUDFLARE_TOKEN=#2UBv2y*9#T#p#%8!^Y58hBHOp*gvt
# - DOMAINS=example.com,*.example.com
redis:
image: redis:alpine
volumes:
- redis_backup:/data
networks:
- backend
mongo:
image: mongo
volumes:
- mongodbs:/data/db
networks:
- backend
networks:
backend:
frontend:
volumes:
mailconfig:
redis_backup:
mongodbs: