This repository contains Dockerfile of Ghost for Docker's automated build published to the public Docker Hub Registry.
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull dockerfile/ghost
(alternatively, you can build an image from Dockerfile:
docker build -t="dockerfile/ghost" github.com/dockerfile/ghost
)
docker run -d -p 80:8008 dockerfile/ghost
docker run -d -p 80:8080 -v <override-dir>:/ghost-override dockerfile/ghost
where <override-dir>
is an absolute path of a directory that could contain:
config.js
: custom config file copied from here (you must replace127.0.0.1
with0.0.0.0
)content/data/
: persistent/shared datacontent/images/
: persistent/shared imagescontent/themes/
: more themes
After few seconds, open http://<host>
for blog or http://<host>/ghost
for admin page.
git clone https://github.com/jetstack/kube-lego.git lego
cd lego/examples/gce/
# Namespace
kubectl apply -f lego/00-namespace.yaml
# ConfigMap
kubectl apply -f lego/configmap.yaml
# Deployment
kubectl apply -f lego/deployment.yaml
# Service is created by kube-lego in every used namespace
cd ../../../ghost
kubectl apply -f .