generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.73 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
version: "3"
volumes:
postfix-logs:
postfix-socket:
services:
smtp_relay_server:
platform: linux/amd64
build:
context: ./smtp-relay
environment:
ENV: "${ENV}"
PUBLIC_DNS_ZONE_NAME_STAFF_SERVICE: "${PUBLIC_DNS_ZONE_NAME_STAFF_SERVICE}"
RELAY_DOMAIN: "${RELAY_DOMAIN}"
O365_SMART_HOST: "${O365_SMART_HOST}"
IP_ALLOWED_LIST: "${IP_ALLOWED_LIST}"
volumes:
- postfix-logs:/var/log/mail
- postfix-socket:/var/spool/postfix
links:
- smtp_relay_monitoring
networks:
known:
ipv4_address: 172.16.0.10
unknown:
ipv4_address: 172.16.1.10
smtp_relay_test:
platform: linux/amd64
build:
context: ./smtp-relay-test
environment:
TEST_SENDER_EMAIL_ADDRESS: "${TEST_SENDER_EMAIL_ADDRESS}"
O365_TEST_RECIPIENT_EMAIL_ADDRESS: "${O365_TEST_RECIPIENT_EMAIL_ADDRESS}"
GOOGLE_TEST_RECIPIENT_EMAIL_ADDRESS: "${GOOGLE_TEST_RECIPIENT_EMAIL_ADDRESS}"
OTHER_TEST_RECIPIENT_EMAIL_ADDRESS: "${OTHER_TEST_RECIPIENT_EMAIL_ADDRESS}"
networks:
- known
- unknown
smtp_relay_monitoring:
platform: linux/amd64
build:
context: ./smtp-relay-monitoring
volumes:
- postfix-logs:/var/log/mail
- postfix-socket:/var/spool/postfix
networks:
- known
networks:
known:
ipam:
driver: default
config:
- subnet: 172.16.0.0/24
unknown:
ipam:
driver: default
config:
- subnet: 172.16.1.0/24