This is going to be used as a base for much of our docker deployment.
The official docker image is a bit too limited and needed something that added a few more plugins for our use:
Additional Plugins:
- GSS support https://github.com/danmasta/ghost-gcs-adapter version 1.0.1
- S3 support -- https://github.com/colinmeinke/ghost-storage-adapter-s3 v2.8.0
Additional configuration added for GCS is:
## GCS
storage__active=gcs
storage__gcs__bucket=gb-dev-testing
storage__gcs__host=storage.googleapis.com
storage__gcs__protocol=https
storage__gcs__hash=true
storage__gcs__hashAlgorithm=sha512
storage__gcs__hashLength=16
GOOGLE_APPLICATION_CREDENTIALS=/var/lib/ghost/keys/service.json
You'll need to add a service account with write support to the requested bucket. The bucket also needs to be public in order to serve traffic.
By convention all the GCE keys are stored in the keys folder and then mounted as a volume to /var/lib/ghost/keys/
Additional configuration for S3:
storage__active=s3
storage__s3__accessKeyId=<AWS Key>
storage__s3__secretAccessKey=<AWS Secret>
storage__s3__region=us-west-1
storage__s3__bucket=bucketName
Please see the plugin github for more details which can be found here
symlink development.yml and enable email interception by enabling the following properties:
ln -s development.yml docker-compose.yml
## DEVEL ONLY
## MailHog Settings TESTING ONLY
mail__transport=SMTP
mail__options__port=1025
mail__options__host=mail
local email can be seen at: http://localhost:8025/#