Host the website locally on port 4000:
docker-compose up
To setup github pages locally, refer to the official guide.
The main steps are:
Gemfile.lock
bundle install
bundle add webrick
bundle exec jekyll build
bundle exec jekyll serve