Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications.
Docker Image: https://hub.docker.com/_/ghost/ (note it runs on port 2368)
-
To persist data you need to make following directory persistant
/var/lib/ghost/content
-
Pass following environment variable
env:
- name: NODE_ENV
value: production
- name: url
value: https://<Public IP Address of your service>/
-
Create Deployment for running your ghost blog apps (using the
latest
tag)- Make sure data persist even after deleting pod and recreating it
- pass the correct environment variables ( stretch goal use configMap)
-
Expose Service externally and update
URL
environment variable -
Register by going to /admin on the website and add some content
-
Delete deployment and recreate, your content should not be lost