-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
58 lines (53 loc) · 1.19 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
---
version: "3.7"
# This Docker composition file is used to build and test the container
secrets:
fullchain_pem:
file: ./src/secrets/fullchain.pem
privkey_pem:
file: ./src/secrets/privkey.pem
users_txt:
file: ./src/secrets/users.txt
services:
postfix:
build:
# VERSION must be specified on the command line:
# e.g., --build-arg VERSION=0.0.1
context: .
dockerfile: Dockerfile
image: cisagov/postfix
init: true
restart: always
environment:
- PRIMARY_DOMAIN=example.com
- RELAY_IP=172.16.202.1/32
networks:
front:
ipv4_address: 172.16.202.2
ports:
- target: "25"
published: "1025"
protocol: tcp
mode: host
- target: "587"
published: "1587"
protocol: tcp
mode: host
- target: "993"
published: "1993"
protocol: tcp
mode: host
secrets:
- source: fullchain_pem
target: fullchain.pem
- source: privkey_pem
target: privkey.pem
- source: users_txt
target: users.txt
networks:
front:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.202.0/24