generated from homecentr/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (32 loc) · 961 Bytes
/
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
version: "3.7"
services:
haraka:
build: .
image: homecentr/haraka-relay
restart: unless-stopped
container_name: haraka
ports:
- 2525:2525
- 9904:9904
networks:
default:
volumes:
- ./example/auth_flat_file.ini:/haraka/config/auth_flat_file.ini
- ./example/relay_via_external.ini:/haraka/config/relay_via_external.ini
- ./example/tls_cert.pem:/haraka/config/tls_cert.pem
- ./example/tls_key.pem:/haraka/config/tls_key.pem
# To trust mocks TLS certificate
- "./example/smtp-mock.crt:/etc/ssl/certs/ca-certificates.crt:ro"
smtp_mock:
image: kbedel/fake-smtp-server
command: node index.js --debug --keystore /keystore.pfx --passphrase Pass --smtpAuth some-user:some-password
container_name: smtp_mock
ports:
- "1080:1080"
networks:
default:
volumes:
- "./example/smtp-mock.pfx:/keystore.pfx"
networks:
internal:
driver: bridge