feat: mail configured with MAIL env var

This commit is contained in:
giles 2021-02-26 06:56:14 -05:00
parent 6a35a57711
commit ca6cd5640f
4 changed files with 28 additions and 5 deletions

View File

@ -16,12 +16,11 @@ services:
- ghost-content-data:/var/lib/ghost/content/data
- ghost-content-logs:/var/lib/ghost/content/logs
environment:
- NODE_ENV=production
- DOMAIN=$DOMAIN
- SCHEME=$SCHEME
- MAIL-SERVICE=$MAIL-SERVICE
- MAIL-USER=$MAIL-USER
- MAIL-PASSWORD=$MAIL-PASSWORD
- COMMENTO_ORIGIN=$COMMENTO_ORIGIN
- MAIL=$MAIL
- database__client=mysql
- database__connection__host=ghost-mysql
- database__connection__user=root

View File

@ -10,7 +10,7 @@ FROM ${REGISTRY}ghost:3.14.0
RUN apt-get update
RUN apt-get install -y gettext
COPY config.production.json /var/lib/ghost/
COPY config.production.json.template /var/lib/ghost/
COPY --from=git /themes/ /var/lib/ghost/content/themes/
COPY post.hbs /hbs/
COPY run.sh /

View File

@ -0,0 +1,24 @@
{
"url": "${SCHEME}://${DOMAIN}/",
"server": {
"port": 2368,
"host": "0.0.0.0"
},
"database": {
"client": "sqlite3",
"connection": {
"filename": "/var/lib/ghost/content/data/ghost.db"
}
},
"mail": ${MAIL},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/lib/ghost/content"
}
}

View File

@ -1,3 +1,3 @@
envsubst < /var/lib/ghost/config.production.json > __tmp && mv __tmp /var/lib/ghost/config.production.json
envsubst < /var/lib/ghost/config.production.json.template > /var/lib/ghost/config.production.json
envsubst < /hbs/post.hbs > /var/lib/ghost/content/themes/casper/post.hbs
node "current/index.js"