Create compose.yaml

This commit is contained in:
David Rotermund 2024-06-29 12:58:16 +02:00 committed by GitHub
parent f2a60726aa
commit 70ebc8d53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

23
smtpd/compose.yaml Normal file
View file

@ -0,0 +1,23 @@
services:
smtpd:
image: "wodby/opensmtpd"
container_name: "smtpd"
hostname: "smtpd"
restart: always
ports:
- "25:25/tcp"
environment:
# I use a modified template. Thus gone...
RELAY_HOST: "XXX"
RELAY_PROTO: "smtps"
# I use a modified template. Thus gone...
RELAY_PORT: "XXX"
RELAY_USER: ${EMAIL_USERNAME}
RELAY_PASSWORD: ${EMAIL_PASSWORD}
volumes:
- "/root/smtpd/smtpd_pre.conf:/etc/gotpl/smtpd.conf.tmpl"
- "smtpd_spool:/var/spool/smtpd"
network_mode: bridge
volumes:
smtpd_spool: