From f3dd17c1d3b436222a059a772b8695ba9c7fe1e4 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Fri, 1 May 2020 00:24:13 +0100 Subject: [PATCH] . --- ghost/Dockerfile | 8 ++++++++ ghost/config.production.json | 33 +++++++++++++++++++++++++++++++++ ghost/run.sh | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 ghost/Dockerfile create mode 100644 ghost/config.production.json create mode 100644 ghost/run.sh diff --git a/ghost/Dockerfile b/ghost/Dockerfile new file mode 100644 index 0000000..816d659 --- /dev/null +++ b/ghost/Dockerfile @@ -0,0 +1,8 @@ +FROM ghost +# USER root +RUN apt-get update +RUN apt-get install -y gettext + +COPY config.production.json /var/lib/ghost/ +COPY run.sh / +CMD ["sh", "/run.sh"] diff --git a/ghost/config.production.json b/ghost/config.production.json new file mode 100644 index 0000000..efcba1f --- /dev/null +++ b/ghost/config.production.json @@ -0,0 +1,33 @@ +{ + "url": "https://${GIT_DOMAIN}/blog", + "server": { + "port": 2368, + "host": "0.0.0.0" + }, + "database": { + "client": "sqlite3", + "connection": { + "filename": "/var/lib/ghost/content/data/ghost.db" + } + }, + "mail": { + "transport": "SMTP", + "options": { + "service": "${GHOST_MAIL_SERVICE}", + "auth": { + "user": "${GHOST_MAIL_USER}", + "pass": "${GHOST_MAIL_PASSWORD}" + } + } + }, + "logging": { + "transports": [ + "file", + "stdout" + ] + }, + "process": "systemd", + "paths": { + "contentPath": "/var/lib/ghost/content" + } +} diff --git a/ghost/run.sh b/ghost/run.sh new file mode 100644 index 0000000..c9016c5 --- /dev/null +++ b/ghost/run.sh @@ -0,0 +1,2 @@ +envsubst < /var/lib/ghost/config.production.json > __tmp && mv __tmp /var/lib/ghost/config.production.json +node "current/index.js"