From 11840e956a200e7302e88903322f705b07ba4b46 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Wed, 6 May 2020 21:07:16 +0100 Subject: [PATCH] separate volume for each content type --- docker-compose.yml | 9 ++++++++- ghost/Dockerfile | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7ca3f39..9c3ed4a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -251,7 +251,11 @@ services: condition: any image: ${LOCAL_DOCKER_REGISTRY}ghost volumes: - - ghost-content:/var/lib/ghost/content + - ghost-content-images:/var/lib/ghost/content/images + - ghost-content-settings:/var/lib/ghost/content/settings + - ghost-content-adapters:/var/lib/ghost/content/adapters + - ghost-content:/var/lib/ghost/content/old-content + environment: - GIT_DOMAIN=$GIT_DOMAIN - GHOST-MAIL-SERVICE=$GHOST-MAIL-SERVICE @@ -550,6 +554,9 @@ volumes: letsencrypt-git: letsencrypt-drone: ghost-content: + ghost-content-adapters: + ghost-content-settings: + ghost-content-images: mongo-chat: chat-uploads: portainer-data: diff --git a/ghost/Dockerfile b/ghost/Dockerfile index 41f5606..0900d9e 100644 --- a/ghost/Dockerfile +++ b/ghost/Dockerfile @@ -1,9 +1,15 @@ +FROM alpine/git as git + +WORKDIR /themes +RUN git clone https://sigyl.com/git/themes/casper.git + FROM ghost:3.14.0 # USER root RUN apt-get update RUN apt-get install -y gettext COPY config.production.json /var/lib/ghost/ +COPY --from=git /themes/ /var/lib/ghost/content/themes/ COPY post.hbs /hbs/ COPY run.sh / CMD ["sh", "/run.sh"]