Run Jekyll from Docker!
You are on this page because you like Docker. I like docker because it’s an easy solution to keep everything in a container and not to make your local environment messy. So, I was wondering how to run jekyll
from docker. After spending some time on the jekyll build process I was able to do it properly. Here is the docker-compose.yml
to do the magic
Pretty simple right?
If you like to initialize a new site, just run the below command
docker-compose run jekyll jekyll . --force
Then run docker-compose up jekyll
Go to http://localhost:4004
to see the static site