Skip to content
Ghost - A recipe for beautiful online publication.


Ghost is "a fully open source, hackable platform for building and running a modern online publication."




  1. Docker swarm cluster with persistent shared storage
  2. Traefik configured per design
  3. DNS entry for the hostname you intend to use, pointed to your keepalived IP


Setup data locations

Create the location for the bind-mount of the application data, so that it's persistent:

mkdir -p /var/data/ghost

Setup Docker Swarm

Create a docker swarm config file in docker-compose syntax (v3), something like this:


I share (with my sponsors) a private "premix" git repository, which includes necessary docker-compose and env files for all published recipes. This means that sponsors can launch any recipe with just a git pull and a docker stack deploy 👍

version: '3'

    image: ghost:1-alpine
     - /etc/localtime:/etc/localtime:ro
     - /var/data/ghost/:/var/lib/ghost/content
    - traefik_public
        - traefik.port=2368

    external: true


Launch Ghost stack

Launch the Ghost stack by running docker stack deploy ghost -c <path -to-docker-compose.yml>

Create your first administrative account at https://YOUR-FQDN/admin/

Chef's Notes 📓

  1. If I wasn't committed to a static-site-generated blog, Ghost is the platform I'd use for my blog.
  2. A default using the SQlite database takes 548k of space:
    [root@ds1 ghost]# du -sh /var/data/ghost/
    548K    /var/data/ghost/
    [root@ds1 ghost]#

Tip your waiter (sponsor me) 👏

Did you receive excellent service? Want to make your waiter happy? (..and support development of current and future recipes!) Sponsor me on Github / Patreon, or see the support page for more (free or paid) ways to say thank you! 👏

Flirt with waiter (subscribe) 💌

Want to know now when this recipe gets updated, or when future recipes are added? Subscribe to the RSS feed, or leave your email address below, and we'll keep you updated. (*double-opt-in, no monkey business, no spam)

Notify me 🔔

Be the first to know when recipes are added / improved!

    We won't send you spam. Unsubscribe at any time. No monkey-business.

    Powered By ConvertKit

    Your comments? 💬

    Last update: June 8, 2020