Created
October 9, 2019 20:35
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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