This project includes Docker configuration for local development with live preview and automatic reloading.
docker-compose up --build
On the first run, Docker will build the image and install all Ruby gems into the jekyll_gems named volume (2–3 minutes). Subsequent runs will start instantly.
NB - if you are using colima and you don’t have it as a background service:
/opt/homebrew/opt/colima/bin/colima start -f
or
colima start
http://localhost:4000
Live reload: The site automatically reloads in your browser whenever you save changes to files. No manual refresh needed.
Ctrl+C in the terminal, or run:
docker-compose down
docker-compose.yml.jekyll_gems persists across runs. To reinstall gems, run:
docker-compose down -v
docker-compose up
The development environment includes jekyll-livereload for live reloading, which is not part of the official github-pages gem. To ensure your site builds correctly for GitHub Pages deployment:
docker-compose exec jekyll bundle exec jekyll build --strict_front_matter
Verify the _site folder is generated correctly without errors.
--livereload flag from the docker-compose.yml or Dockerfile command.