Skip to content

sbrych/alpine-ghost

 
 

Repository files navigation

Forked from https://github.com/ZZROTDesign/alpine-ghost - I needed up-to-date version


Ghost on Alpine Linux

Build Status Docker Pulls

This is a Docker image for Ghost. This image runs with a base of Alpine-Linux making it extremely small, secure and fast.

This image is also available on Docker Hub.

Usage

We recommend using our images in conjunction with Docker-Compose. This allows for easier creation of containers with the proper volumes and ports enabled.

We have included an example docker-compose file to show how this image might be used both for development and production in a different project.

This image works out of the box with no volumes. It differs from the official Docker Ghost image by including a config.js file with some env variables defined.

  1. DEV_DOMAIN = Is the domain that is reachable on your development machine. This is typically your docker-machine host ip
  2. PROD_DOMAIN = When running this image in production (NODE_ENV=production), this is the domain that is used.

This image also runs with containers. It will accept a volume from your ghost content folder, as well as a custom config.js file. These must point to /var/lib/ghost/ - See the example docker-compose for specification.

Available ENV Variables

  • DEV_DOMAIN: URL for Ghost Blog running in Development

  • PROD_DOMAIN: URL for Ghost Blog running in Production

  • DEV_MAIL_TRANSPORT: Type of Transport used for Development Email

  • DEV_MAIL_SERVICE: The Service by which email will be sent in Development

  • DEV_MAIL_USER: Username for the Development email service

  • DEV_MAIL_PASS: Password for the Development email service

  • DEV_MAIL_FROM: Address which the Development email will be sent from

  • PROD_MAIL_TRANSPORT: Type of Transport used for Production Email

  • PROD_MAIL_SERVICE: The Service by which email will be sent in Production

  • PROD_MAIL_USER: Username for the Production email service

  • PROD_MAIL_PASS: Password for the Production email service

  • PROD_MAIL_FROM: Address which the Production email will be sent from

Getting Started

To run this container with the predefined defaults:

docker run -p 2368:2368 zzrot/alpine-ghost

Now the Ghost container will be available at your.dockermachine.ip:2368.

See the example compose file for specification of including the ENV variables as well as the volumes.

Volumes

This image has one volume that can be utilized. By connecting a folder with:

 /var/lib/ghost/

You can not only keep your data persistent, but also upload a custom config.js file. In order to do this connect your volume like this:

 /your/contentfolder:/var/lib/ghost/

About

Ghost Container running in Alpine Linux

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.7%
  • Shell 12.3%