Add more configuration ENV vars

This commit is contained in:
xZero707 2021-05-28 00:28:32 +02:00
parent 588c242e3a
commit 17216b8b9c
3 changed files with 21 additions and 14 deletions

View File

@ -54,6 +54,13 @@ services:
- POSTAL_LNAME=Cat
- POSTAL_PASSWORD=hDzqLsP5hEXuBinpQ3KHSknvgTxRu6
- POSTAL_EMAIL=aleksandar@puharic.com
- POSTAL_SMTP_HOSTNAME=mailer.network7.nu
- POSTAL_SPF=spf.mailer.network7.nu
- POSTAL_RP=rp.mailer.network7.nu
- POSTAL_MX=mx.network7.nu
- POSTAL_UI_ADDRESS=mailer.network7.nu
- POSTAL_ROUTER_DOMAIN=router.mailer.network7.nu
- POSTAL_TRACK_DOMAIN=trx.network7.nu
networks:
default: { aliases: [ postal, service ] }
client: { aliases: [ postal, mailer, mailer-service ] }

View File

@ -5,7 +5,7 @@ web_server:
web:
# The host that the management interface will be available on
host: postal.example.com
host: {{ POSTAL_UI_ADDRESS }}
# The protocol that requests to the management interface should happen on
protocol: https
@ -46,12 +46,12 @@ dns:
# https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further
# information about these.
mx_records:
- mx.postal.example.com
smtp_server_hostname: postal.example.com
spf_include: spf.postal.example.com
return_path: rp.postal.example.com
route_domain: routes.postal.example.com
track_domain: track.postal.example.com
- {{ POSTAL_MX }}
smtp_server_hostname: {{ POSTAL_SMTP_HOSTNAME }}
spf_include: {{ POSTAL_SPF }}
return_path: {{ POSTAL_RP }}
route_domain: {{ POSTAL_ROUTER_DOMAIN }}
track_domain: {{ POSTAL_TRACK_DOMAIN }}
smtp:
# Specify an SMTP server that can be used to send messages from the Postal management

View File

@ -1,6 +1,6 @@
web:
# The host that the management interface will be available on
host: postal.example.com
host: {{ POSTAL_UI_ADDRESS }}
# The protocol that requests to the management interface should happen on
protocol: https
@ -41,12 +41,12 @@ dns:
# https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further
# information about these.
mx_records:
- mx.postal.example.com
smtp_server_hostname: postal.example.com
spf_include: spf.postal.example.com
return_path: rp.postal.example.com
route_domain: routes.postal.example.com
track_domain: track.postal.example.com
- {{ POSTAL_MX }}
smtp_server_hostname: {{ POSTAL_SMTP_HOSTNAME }}
spf_include: {{ POSTAL_SPF }}
return_path: {{ POSTAL_RP }}
route_domain: {{ POSTAL_ROUTER_DOMAIN }}
track_domain: {{ POSTAL_TRACK_DOMAIN }}
smtp:
# Specify an SMTP server that can be used to send messages from the Postal management