-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
53 lines (40 loc) · 1.36 KB
/
compose.yaml
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
# WARNING: Don't edit this file unless you know what you're doing.
services:
mail:
# Our mail server's hostname. For important information on choosing this
# value, please see the README.
hostname: if-you-see-this-you-are-missing-a-compose.override.yaml-file
# Build the image from this directory.
build: .
# If the container stops, restart it automatically.
restart: always
ports:
# Postfix listens to these ports, as defined in `etc/postfix/master.cf`:
# SMTP submission through implicit TLS.
- "465:465"
# SMTP submission with STARTTLS.
- "587:587"
# Runs Tini as the container's init process. For more information, see:
# https://github.com/krallin/tini#why-tini
init: true
volumes:
# Persist Postfix's queue directory so queued mail isn't lost on restart.
- postfix-queue:/var/spool/postfix
# Persist our Dovecot database.
- dovecot-db:/etc/auth
# Persist our DKIM private keys.
- dkim-keys:/home/dkim/keys
# Persist `dehydrated`'s base directory with our TLS certificates and
# related files.
- dehydrated-basedir:/home/acme/dehydrated
# Load our `.env` file into the server (at `/run/secrets/.env`).
secrets:
- .env
volumes:
postfix-queue:
dovecot-db:
dkim-keys:
dehydrated-basedir:
secrets:
.env:
file: ./.env