wordpress/compose.mailrelay.yml
3wc e6dc753365
All checks were successful
continuous-integration/drone/push Build is passing
Improve email set-up
2020-09-27 21:27:26 +02:00

32 lines
643 B
YAML

---
version: "3.8"
services:
wordpress:
entrypoint: /docker-entrypoint.sh
environment:
- SMTP_HOST=${SMTP_HOST}
- MAIL_FROM=${MAIL_FROM}
networks:
- mail
configs:
- source: mstmp_conf
target: /etc/msmtprc
- source: entrypoint
target: /etc/msmtprc
mode: 0555
networks:
mail:
external: true
configs:
mstmp_conf:
name: ${STACK_NAME}_mstmp_conf_${MSMTP_CONF_VERSION}
file: msmtp.conf.tmpl
template_driver: golang
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang