Skip to content

Instantly share code, notes, and snippets.

@debloper
Created October 9, 2019 20:35
Show Gist options
  • Save debloper/90be7008ebd9d6e343961f905e21598a to your computer and use it in GitHub Desktop.
Save debloper/90be7008ebd9d6e343961f905e21598a to your computer and use it in GitHub Desktop.
Run a ghost blog container with mounted data directory (./content) from the host
version: '3'
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8080:2368
volumes:
- ./content:/var/lib/ghost/content
# N.B: This assumes the blog contents to be in
# <repo>/content directory of your host
#
# Change the path according to your need:
# - /path/to/content:/var/lib/ghost/content
#
# Visit http://localhost:8080/ghost to login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment