Add mail settings to env file

This commit is contained in:
Kieran Cutting 2022-07-12 10:05:41 +01:00
parent 81eb9f03e8
commit b316127970
3 changed files with 17 additions and 1 deletions

View File

@ -5,4 +5,12 @@ DOMAIN=ghost.example.com
## Domain aliases
#EXTRA_DOMAINS=', `www.ghost.example.com`'
LETS_ENCRYPT_ENV=production
PT_ENV=production
## Mail settings
#MAIL_TRANSPORT=smtp
#MAIL_FROM=admin@example.com
#MAIL_OPTIONS_HOST=mail.example.com
#MAIL_OPTIONS_PORT=587
#MAIL_OPTIONS_SECURE=false
#MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
#MAIL_OPTIONS_AUTH_PASS=XXXX

1
.gitignore vendored
View File

@ -1 +1,2 @@
.envrc
.DS_Store

View File

@ -11,6 +11,13 @@ services:
database__connection__password: ghost
database__connection__database: ghost
url: https://$DOMAIN
mail__transport: ${MAIL_TRANSPORT}
mail__from: ${MAIL_FROM}
mail__options__host: ${MAIL_OPTIONS_HOST}
mail__options__port: ${MAIL_OPTIONS_PORT}
mail__options__secure: ${MAIL_OPTIONS_SECURE}
#mail__options__auth__user: ${MAIL_OPTIONS_AUTH_USER}
#mail__options__auth__pass: ${MAIL_OPTIONS_AUTH_PASS}
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
#NODE_ENV: development
networks: