feat: mail configured with MAIL env var
This commit is contained in:
parent
6a35a57711
commit
ca6cd5640f
|
@ -16,12 +16,11 @@ services:
|
||||||
- ghost-content-data:/var/lib/ghost/content/data
|
- ghost-content-data:/var/lib/ghost/content/data
|
||||||
- ghost-content-logs:/var/lib/ghost/content/logs
|
- ghost-content-logs:/var/lib/ghost/content/logs
|
||||||
environment:
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
- DOMAIN=$DOMAIN
|
- DOMAIN=$DOMAIN
|
||||||
- SCHEME=$SCHEME
|
- SCHEME=$SCHEME
|
||||||
- MAIL-SERVICE=$MAIL-SERVICE
|
|
||||||
- MAIL-USER=$MAIL-USER
|
|
||||||
- MAIL-PASSWORD=$MAIL-PASSWORD
|
|
||||||
- COMMENTO_ORIGIN=$COMMENTO_ORIGIN
|
- COMMENTO_ORIGIN=$COMMENTO_ORIGIN
|
||||||
|
- MAIL=$MAIL
|
||||||
- database__client=mysql
|
- database__client=mysql
|
||||||
- database__connection__host=ghost-mysql
|
- database__connection__host=ghost-mysql
|
||||||
- database__connection__user=root
|
- database__connection__user=root
|
||||||
|
|
|
@ -10,7 +10,7 @@ FROM ${REGISTRY}ghost:3.14.0
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y gettext
|
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 --from=git /themes/ /var/lib/ghost/content/themes/
|
||||||
COPY post.hbs /hbs/
|
COPY post.hbs /hbs/
|
||||||
COPY run.sh /
|
COPY run.sh /
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
envsubst < /hbs/post.hbs > /var/lib/ghost/content/themes/casper/post.hbs
|
||||||
node "current/index.js"
|
node "current/index.js"
|
||||||
|
|
Loading…
Reference in New Issue