Skip to content

Instantly share code, notes, and snippets.

@fschoenfeldt
Last active August 23, 2019 09:01
Show Gist options
  • Save fschoenfeldt/03ce091fa82955d5b5808c14b9eab445 to your computer and use it in GitHub Desktop.
Save fschoenfeldt/03ce091fa82955d5b5808c14b9eab445 to your computer and use it in GitHub Desktop.
Ghost CMS: Docker Quickstart Guide with docker-compose.yml

Ghost CMS with Docker Community image

Requirements: Docker / NodeJS (+npm) - More info at: https://hub.docker.com/_/ghost - Ghost Source: https://github.com/TryGhost/Ghost

Quick start

  1. Download docker-compose.yml and place it in a directory
  2. Go into the directory and run docker-compose up - Docker will download the latest image now
  3. You can now go to localhost:8080 in your browser verify it's running

Note

You may also use the classic npm way to get ghost running: https://github.com/TryGhost/Ghost#quickstart-install

  1. npm i -g ghost-cli
  2. ghost install local
# by default, the Ghost image will use SQLite (and thus requires no separate database container)
# we have used MySQL here merely for demonstration purposes (especially environment-variable-based configuration)
version: '3.1'
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8080:2368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment