1services:
2 site:
3 image: jekyll/jekyll:4
4 command: sh -c "gem install webrick jekyll-seo-tag jekyll-sitemap --no-document && jekyll serve --watch --force_polling --host 0.0.0.0 --port 4000 --future"
5 # Docker bridge traffic can be blocked by host firewall or VPN rules.
6 # Host networking makes the local preview available directly on port 4000.
7 network_mode: host
8 volumes:
9 - .:/srv/jekyll
10 environment:
11 JEKYLL_ENV: development