DEV Community

Cover image for Running Jekyll on Docker for Easy Local Development
Julio
Julio

Posted on

Running Jekyll on Docker for Easy Local Development

I'm using Jekyll for one of my blogs and I'm really liking it. It's easy to get up and running with it and it just works!

If you're planning to create a blog and want something simpler that just do the job and doesn't ask you too much time to do setup, learn about it, etc, Jekyll might be a good option for you.

During this process, I observed a few pain points:

  1. I have to manually start the server every time I want to use it.
  2. Dealing with localhost and port numbers.
  3. I have to use a code editor to make the writing and building more convenient, although there might be better alternatives to only focus on the writing part.

For pain points 1 and 2 I created a solution this morning and wanted to share with you.

I wrote all the details on this article Running Jekyll on Docker For Easy Local Development

The general idea is:

  1. Use docker to keep the sever running on my machine with live reload enabled;
  2. Use a reverse proxy to map a domain to the localhost:4000 address.

For point 3 I'm still about to research a solution. Once I find one that I like I'll share here as well.

Have a great weekend! :)

Top comments (2)

Collapse
 
vishalraj82 profile image
Vishal Raj

@jcfausto For the pain point #2, dev.to/vishalraj82/using-https-in-... might be of some help.

Collapse
 
jcfausto profile image
Julio

Cool! Nice article. When the time comes to do the setup to use HTTS I'll definitely try your approach! Thanks for sharing! 👍