32 lines
697 B
YAML
32 lines
697 B
YAML
|
---
|
||
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
wordpress:
|
||
|
entrypoint: /docker-entrypoint2.sh
|
||
|
environment:
|
||
|
- SMTP_HOST=${SMTP_HOST}
|
||
|
networks:
|
||
|
- mail
|
||
|
configs:
|
||
|
- source: entrypoint_mailrelay_conf
|
||
|
target: /docker-entrypoint2.sh
|
||
|
mode: 0555
|
||
|
- source: mstmp_conf
|
||
|
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_mailrelay_conf:
|
||
|
name: ${STACK_NAME}_entrypoint_mailrelay_${ENTRYPOINT_MAILRELAY_CONF_VERSION}
|
||
|
file: entrypoint.mailrelay.sh.tmpl
|
||
|
template_driver: golang
|