homeserver/docker-compose/mail-relay/docker-compose.yml.j2
Renovate Bot d2c133e406 chore(deps): update registry.mgrote.net/postfix docker tag to v1.1.185 (#816)
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-02-20 16:35:22 +01:00

30 lines
907 B
Django/Jinja

version: '3.3'
services:
postfix:
image: "registry.mgrote.net/postfix:v1.1.185@sha256:f1f1236ef47eb7570bbc4560611b35454518e657bbdf776e003af89b521bbc6c"
container_name: mail-relay
restart: always
ports:
- 1025:25
environment:
SMTP_SERVER: smtp.strato.de
SMTP_USERNAME: info@mgrote.net
SMTP_PASSWORD: "{{ lookup('keepass', 'strato_smtp_password', 'password') }}"
SERVER_HOSTNAME: mgrote.net
# DEBUG: "yes" # literal
ALWAYS_ADD_MISSING_HEADERS: "no" # literal
# LOG_SUBJECT: "yes" # literal
INET_PROTOCOL: ipv4
SMTP_GENERIC_MAP: "/.*/ info@mgrote.net"
networks:
- mail-relay
healthcheck:
test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 localhost 25 | grep -q '220 '"]
interval: 30s
timeout: 10s
retries: 3
######## Networks ########
networks:
mail-relay:
external: true