Create compose.yaml

This commit is contained in:
David Rotermund 2024-07-12 15:46:37 +02:00 committed by GitHub
parent 8518378aab
commit 12a20c7ee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,20 @@
services:
smtpd:
image: wodby/opensmtpd
container_name: smtpd
restart: always
volumes:
- "/root/opensmtpd/smtpd_pre.conf:/etc/gotpl/smtpd.conf.tmpl"
- "smtpd:/var/spool/smtpd"
ports:
- "25:25"
environment:
RELAY_HOST: "XXX"
RELAY_PROTO: "smtps"
RELAY_PORT: "XXX"
RELAY_USER: ${MAIL_USERNAME}
RELAY_PASSWORD: ${MAIL_PASSWORD}
network_mode: bridge
volumes:
smtpd: