diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5529367 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5b0454a..85174b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,9 @@ version: '3.1' services: ghost: - image: ghost:5.79 + build: + context: . + dockerfile: Dockerfile restart: always ports: - 8080:2368 @@ -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