Giter Club home page Giter Club logo

ghost-s3's Introduction

ghost-s3

A Docker image that runs the Ghost CMS with an S3 storage adapter installed.

Intro:

The official Ghost Docker image, available from here, doesn't come with the ability to connect to AWS S3 storage built-in. This Dockerfile installs ghost-storage-adapter-s3, which allows Ghost to connect to an S3 bucket for storing its content/ folder. This is especially useful for those building a custom frontend with Ghost as the backend CMS.

Things You Will Need:

This project uses Docker.

You will need an AWS S3 bucket and an IAM user with permissions to use that bucket. Instructions for setting up your S3 bucket and IAM user can be found here.

To Use:

I've put this image up on Dockerhub, so you can pull it with:

docker pull wunderhund/ghost-s3

To run from command line:

docker run -p 2368:2368 \
  -e storage__active=s3 \
  -e storage__s3__accessKeyId=<AWS Access Key> \
  -e storage__s3__secretAccessKey=<AWS Secret Key> \
  -e storage__s3__bucket=<s3 bucket name> \
  -e storage__s3__region=us-east-1 \
  wunderhund/ghost-s3:latest

I've also provided a sample docker-compose for running Ghost with S3 and mysql:

  • Edit docker-compose.yml and put in your own values for the AWS IAM user and S3 bucket.
  • Save the changes to docker-compose.yml and then run: docker-compose up --build.

Getting this working was a little frustrating, so I figured I'd publish the results for everyone's convenience. The problem is that the ghost-storage-adapter-s3 install instructions specify it neds to be moved to the content/ directory, but the storage__active environment variable tells Ghost to look for that directory in S3, which it can't reach without the adapter! Special thanks to mason for figuring out the trick of putting the adapter in the content.orig/ directory instead: docker-library/ghost#195 (comment)

ghost-s3's People

Contributors

wunderhund avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.