forked from drdaeman/docker-emailrelay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1.49 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
services:
emailrelay:
build: ./
image: dcagatay/emailrelay:latest
command: --forward-on-disconnect --forward-to mailpit:1025
ports:
- "25:25"
restart: unless-stopped
mailpit:
image: axllent/mailpit
logging:
driver: "none" # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
restart: unless-stopped
# emailrelay-gmail:
# build: ./
# image: dcagatay/emailrelay:latest
# command: --forward-on-disconnect --forward-to smtp.gmail.com:587 --client-tls --client-auth=/config/client-auth.txt
# volumes:
# - ./config:/config:ro
# ports:
# - "25:25"
# restart: unless-stopped
# emailrelay-tls:
# build: ./
# image: dcagatay/emailrelay:latest
# command: --domain msa.example.com --forward-on-disconnect --forward-to mail.example.org:587 --client-tls --server-tls /etc/ssl/server.pem
# volumes:
# - ./config/key_and_cert.pem:/etc/ssl/server.pem:ro
# environment:
# PORT: "587"
# SWAKS_OPTS: "-tls"
# ports:
# - "587:587"
# restart: unless-stopped
# emailrelay-server-client-auth:
# build: ./
# image: dcagatay/emailrelay:latest
# command: --domain msa.example.com --filter /config/filter.sh --forward-on-disconnect --forward-to mail.example.org:587 --client-tls --client-auth=/config/client-auth.txt --server-auth=/config/server-auth.txt
# volumes:
# - ./config:/config:ro
# ports:
# - "25:25"
# restart: unless-stopped