1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-12 17:26:19 +00:00
Files
geek-cookbook/manuscript/recipes/ghost.md

1.3 KiB

description
description
Ghost - Beautiful online publicatio (who you gonna call?)

Ghost

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

Ghost screenshot

--8<-- "recipe-standard-ingredients.md"

Preparation

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:

--8<-- "premix-cta.md"

version: '3'

services:
  ghost:
    image: ghost:1-alpine
    volumes:
     - /etc/localtime:/etc/localtime:ro
     - /var/data/ghost/:/var/lib/ghost/content
    networks:
    - traefik_public
    deploy:
      labels:
        - traefik.frontend.rule=Host:ghost.example.com
        - traefik.docker.network=traefik
        - traefik.port=2368

networks:
  traefik_public:
    external: true

Serving

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/

--8<-- "recipe-footer.md"