Create compose.yaml
This commit is contained in:
parent
8518378aab
commit
12a20c7ee7
1 changed files with 20 additions and 0 deletions
20
ubuntu/opensmtpd/compose.yaml
Normal file
20
ubuntu/opensmtpd/compose.yaml
Normal 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:
|
Loading…
Reference in a new issue