Skip to content

Commit

Permalink
🧱 Add S3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
zbcjackson committed Feb 24, 2024
1 parent ac8f58e commit 6bc36cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ghost:5.79.3-alpine

WORKDIR /var/lib/ghost

RUN npm install ghost-storage-adapter-s3 \
&& mkdir -p ./content.orig/adapters/storage \
&& cp -vr ./node_modules/ghost-storage-adapter-s3 ./content.orig/adapters/storage/s3
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: '3.1'
services:

ghost:
image: ghost:5.79
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- 8080:2368
Expand All @@ -18,6 +20,13 @@ services:
url: http://localhost:8080
# 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
storage__active: s3
storage__s3__accessKeyId: ENJOZ3AP8X19L3ZWB7LA
storage__s3__secretAccessKey: ffEr4GBcDRPkEEBzhQszDuBi9hXsiO0MbYAMifrF
storage__s3__region: us-lax-1
storage__s3__bucket: blog
storage__s3__assetHost: //blog.us-lax-1.linodeobjects.com
storage__s3__endpoint: us-lax-1.linodeobjects.com
volumes:
- ghost:/var/lib/ghost/content

Expand Down

0 comments on commit 6bc36cf

Please sign in to comment.