Last active
December 10, 2020 18:43
-
-
Save theetrain/4d1fb7f16f59da5d02f49db0e7c206a5 to your computer and use it in GitHub Desktop.
For Jekyll development. All you need to run is `docker-compose up`!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Port 3000 is for manually logging in and using `netlify dev` if you use the CLI for leveraging secrets | |
# This includes --livereload to refresh the page when there are file changes | |
# Runs on localhost:4000 | |
version: "3.8" | |
services: | |
dev: | |
image: jekyll/jekyll:4 | |
ports: | |
- 4000:4000 | |
- 3001:3001 | |
- 3000:3000 | |
environment: | |
- JEKYLL_ENV=development | |
working_dir: /srv/jekyll | |
volumes: | |
- ./:/srv/jekyll | |
entrypoint: jekyll | |
command: serve --watch --force_polling --verbose --livereload --livereload-port 3001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment