livereload support #7

Closed
opened 2025-11-20 04:14:49 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @indusninja on GitHub (Mar 6, 2019).

I'm not getting live reloading support in the jekyll-serve image. Is that missing or is there a way I can pass the --livereload argument from docker-compose file?

I'm talking about the jekyll serve --livereload command that was introduced in Jekyll 3.7.0

Originally created by @indusninja on GitHub (Mar 6, 2019). I'm not getting live reloading support in the `jekyll-serve` image. Is that missing or is there a way I can pass the `--livereload` argument from docker-compose file? I'm talking about the `jekyll serve --livereload` command that was introduced in [Jekyll 3.7.0](https://jekyllrb.com/news/2018/01/02/jekyll-3-7-0-released/)
Author
Owner

@BretFisher commented on GitHub (Mar 6, 2019):

You can override the Dockerfile CMD with a docker-compose.yml command: or just fork this repo and create your own image with the settings you prefer :)

@BretFisher commented on GitHub (Mar 6, 2019): You can override the Dockerfile CMD with a docker-compose.yml `command:` or just fork this repo and create your own image with the settings you prefer :)
Author
Owner

@indusninja commented on GitHub (Mar 6, 2019):

This version of the docker-compose file works for me. Thank you for the help 👍

version: '2'

services:
  jekyll:
    image: bretfisher/jekyll-serve
    volumes:
      - .:/site
    ports:
      - '8085:4000'
    command: bundle exec jekyll s --force_polling -H 0.0.0.0 -P 4000 --livereload
@indusninja commented on GitHub (Mar 6, 2019): This version of the docker-compose file works for me. Thank you for the help 👍 ``` version: '2' services: jekyll: image: bretfisher/jekyll-serve volumes: - .:/site ports: - '8085:4000' command: bundle exec jekyll s --force_polling -H 0.0.0.0 -P 4000 --livereload ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jekyll-serve#7