Skip to content

Instantly share code, notes, and snippets.

@lucatironi
Last active January 18, 2018 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucatironi/0c5963e7c4c94dcc1f6de3eb9e0eafdf to your computer and use it in GitHub Desktop.
Save lucatironi/0c5963e7c4c94dcc1f6de3eb9e0eafdf to your computer and use it in GitHub Desktop.
Docker Compose Jekyll Setup

README

docker-compose run --rm web jekyll new --force .
docker-compose up

Open localhost:4000

version: "3"
services:
web:
command: jekyll serve
image: jekyll/jekyll:latest
volumes:
- $PWD:/srv/jekyll
- $PWD/vendor/bundle:/usr/local/bundle
ports:
- 4000:4000
- 35729:35729
- 3000:3000
- 80:4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment