All Projects → alexellis → Ghost On Docker

alexellis / Ghost On Docker

Licence: mit
Ghost Blog on Docker - Dockerfile for ARM etc

Labels

Projects that are alternatives of or similar to Ghost On Docker

Graphviz Scripts
Some dot files for graphviz
Stars: ✭ 106 (-4.5%)
Mutual labels:  makefile
Workflow Paper
The .md source for "The Plain Person's Guide to Plain Text Social Science". To exactly reproduce the PDF you will need current versions of R, TexLive, biber, and the support files at http://www.kieranhealy.org/resources.html.
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Libbrotli
meta project to build libraries from the brotli source code
Stars: ✭ 110 (-0.9%)
Mutual labels:  makefile
Rprogdatascience
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Beyondinteraction
openFrameworks examples for the book "Beyond Interaction".
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Project
General issue tracker for the Frictionless Data project.
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Awesome Safety Critical
List of resources about programming practices for writing safety-critical software.
Stars: ✭ 1,425 (+1183.78%)
Mutual labels:  makefile
Docker Ce Packaging
Packaging scripts for Docker CE
Stars: ✭ 111 (+0%)
Mutual labels:  makefile
Python Jenkins Template
Template for Jenkins jobs for python projects.
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Riscv Rust Toolchain
RISCV Rust Toolchain
Stars: ✭ 110 (-0.9%)
Mutual labels:  makefile
Pingprom
Prometheus uptime monitoring quickstart
Stars: ✭ 107 (-3.6%)
Mutual labels:  makefile
Jmuduo
imitate a net library named muduo written by ChenShuo
Stars: ✭ 108 (-2.7%)
Mutual labels:  makefile
Seed
Go application GitHub repository template.
Stars: ✭ 109 (-1.8%)
Mutual labels:  makefile
Emotional Labor Assessment
Stars: ✭ 106 (-4.5%)
Mutual labels:  makefile
Netbsd
for NetBSD project.
Stars: ✭ 110 (-0.9%)
Mutual labels:  makefile
Crkbd
Corne keyboard, a split keyboard with 3x6 column staggered keys and 3 thumb keys.
Stars: ✭ 2,056 (+1752.25%)
Mutual labels:  makefile
Kubernetes Common Services
These services help make it easier to manage your applications environment in Kubernetes
Stars: ✭ 109 (-1.8%)
Mutual labels:  makefile
Ppl Intro
probabilistic programming for PL folks
Stars: ✭ 112 (+0.9%)
Mutual labels:  makefile
Multi Stage Build Example
Example repository to accompany my talk at Velocity 2018
Stars: ✭ 111 (+0%)
Mutual labels:  makefile
Saturn
Stars: ✭ 110 (-0.9%)
Mutual labels:  makefile

ghost-on-docker

Ghost

Pair Docker and Ghost for the perfect platform to run your blog!

Find out more about Ghost here

Ghost is an elegant and minimal blogging platform that focus on simplicity. One of its most attractive features is its Markdown editor. It's also fully hackable running on Node.js with the Handlebars view-engine.

This project is work-in-progress but all the blog images are fully working

Ghost 1.0

Ghost 1.0 was released in July 2017 you can find the Dockerfile here and a Getting Started blog post here.

For now I'd still recommend using Ghost 0.11.x which has better support for running in Docker under a known configuration. Check back soon for more on Ghost 1.0.

Ghost 0.11.x

The rest of these instructions are for the version of Ghost running at https://blog.alexellis.io and many other sites.

Getting started

You can pull the ARMv7 image (for PI2/3) straight from the Docker Hub docker pull alexellis2/ghost-on-arm:armv7. The image for your PC, laptop or cloud host is - alexellis2/ghost-on-docker:latest.

To get the latest and greatest versions you can build your own image using the Dockerfile provided. If you'd like to help maintain or test new versions please do so through pull requests.

Please support the project by giving it a Star.

Dockerfiles

These are all based upon Node 4.x, pick the architecture for your computer/server. If you are using a regular PC it will be the first option marked x86_x64. Each image has been pushed to the Docker hub, the npm modules alone for Ghost take up around 500MB, but the download will be faster than a fresh build if you use a Raspberry PI.

  • Regular PC/Laptop - x86_x64
  • Dockerfile
  • Based upon Alpine Linux
  • Very fast build time and high amount of requests/per second compared to a Raspberry PI, my Core i5 NUC with 16GB RAM running a single container gave around 85-90 requests/per second.

Example usage:

$ docker run --name blog -d -p 80:2368 alexellis2/ghost-on-docker:latest

Or use the recently added Docker Compose file for even less fuss:

$ docker-compose up -d
  • ARMv7 (Raspberry PI 2 / 3)
  • Dockerfile
  • Building SQLite npm module on PI 2 takes about 7 minutes
  • semver and other required modules will take quite some time
  • Once up and running can handle 12-16 requests per second
  • Nginx is beneficial as a cache (dramatically improving requests/per second), but not absolutely necessary.

Example usage:

$ docker run --name blog -d -p 80:2368 alexellis2/ghost-on-docker:armv7
  • ARMv6 (Raspberry PI A/B/B+/Zero)
  • Dockerfile
  • Note: ARMv6, especially models with < 512mb RAM will require a swapfile for building the SQLite npm module. Creating SWAP file
  • Building SQLite npm module on PI Zero takes about 16 minutes
  • Once up and running performs 2-3 requests per second, use of Nginx or another cache is highly recommended.

Example usage:

$ docker run --name blog -d -p 80:2368 alexellis2/ghost-on-docker:armv6

Benchmarking

One of the simplest ways you can benchmark your blog is to use Apache Bench. It has a very simple CLI, here's an example load:

On the Docker host:

$ docker run --name blog -d -p 80:2368 alexellis2/ghost-on-docker:latest
5c71cdf984fefc7b508e8ee0f0d82c389ee492a339f7df23be95a61e83340156

From another PC:

$ ab -c 4 -n 1000 http://192.168.0.240/
  • -c 4 means 4 concurrent requests, simulating three users hitting the page at exactly the same time
  • -n 1000 means 1000 requests, so each of the 4 users will hit the page a portion of that time. i.e. 250 requests each.

You can play with the numbers to see how the blog performs under different conditions, you could also try typing in docker stats to see what kind of load the Docker container is creating.

Taking it further

  • Learn how to apply caching on your blog with NGinx.

Boost your site's performance and save money with NGinx

  • Use Docker volumes to safely upgrade your blog and preserve your data

Keeping Shipping your blog with Docker volumes

There is also an example docker-compose.yml file in this repository which you can use as a template for mounting a persistent volume.

Questions/comments?

Head over to my blog and post a comment/question, or if you've found a bug raise an issue on Github.

See also:

Just want to learn Docker?

Start learning today with a dozen progressive labs with my Hands-on Docker tutorial

How I self-host my blog for free

Self-hosting on a Raspberry PI

How I use dynamic DNS for alexellis.io

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].