jekyll-docker

jekyll-docker

Jekyll installed in Docker

Jekyll on Docker

copy-paste and use

to serve site run

docker-compose up -d

If you want to instal yourself read manual below 👇

Install Jekyll Docker

manual here

mkdir jekyll-website
cd jekyll-website
touch docker-compose.yml

copy code below in your docker-compose.yml file

version: "3"

services:
  jekyll:
    image: jekyll/jekyll:latest
    command: jekyll serve --watch --force_polling
    ports:
      - 4000:4000
    volumes:
      - .:/srv/jekyll
docker-compose run jekyll /bin/bash

jekyll new . --force

config your Jekyll files, then

bundle update

exit

docker-compose up

How to use

after edit config file you have to run

docker-compose run jekyll /bin/bash

after enter into console, run

bundle update

exit

to serve site run

docker-compose up -d

then open browser http://0.0.0.0:4000/