Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.57 KB

README.md

File metadata and controls

69 lines (48 loc) · 1.57 KB

Bludit Docker Image

This Docker container provides a quick solution to run a website with Bludit, if you are going to run this Docker container in a production environment, I would recommend to improve the security on it.

Docker Hub

Kubernetes

Run the container

$ docker run --name bludit -p 127.0.0.1:8000:80 -d bludit/docker:latest

To get access visit with your browser http://localhost:8000

Run the container and mounting a volume to persist data

mkdir ~/bludit

docker run --name bludit \
    -p 127.0.0.1:8000:80 \
    -v ~/bludit:/usr/share/nginx/html/bl-content \
    -d bludit/docker:latest

Run the container and mount volumes to persist themes & plugins

mkdir ~/bludit
mkdir ~/bludit-themes
mkdir ~/bludit-plugins

docker run --name bludit \
    -p 127.0.0.1:8000:80 \
    -v ~/bludit:/usr/share/nginx/html/bl-content \
    -v ~/bludit-themes:/usr/share/nginx/html/bl-themes \
    -v ~/bludit-plugins:/usr/share/nginx/html/bl-plugins \
    -d bludit/docker:latest

To get access visit with your browser http://localhost:8000

Stop the container

$ docker stop bludit

Delete the container

$ docker rm bludit

Delete the image

$ docker rmi bludit/docker:latest

Kubernetes

Run Bludit on K8s.

$ kubectl apply -f kubernetes/deployment.yml
$ kubectl apply -f kubernetes/service.yml