diff --git a/README.md b/README.md index 631e841..b2f488b 100755 --- a/README.md +++ b/README.md @@ -67,6 +67,19 @@ To serve across lan (requires su to forward the port 4000 over lan): ./scripts/serve-lan-production ``` +### Docker + +Run using Docker: + +``` +docker run --rm -it -p 4000:4000 -v "$PWD:/srv/jekyll" jekyll/jekyll jekyll serve --watch --host "0.0.0.0" --config _config.yml,_config.dev.yml +``` + +Run using Docker with Docker Compose: +``` +docker-compose up +``` + ## OSS used in { Personal } One of the reasons { Personal } is real is the following OSS projects: diff --git a/docker-compose.yml b/docker-compose.yml index 2034e74..08eb477 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: image: jekyll/jekyll ports: - "4000:4000" - command: /bin/bash -c 'PATH=$$PATH:/srv/jekyll/scripts; serve-lan' + command: jekyll serve --watch --host "0.0.0.0" --config _config.yml,_config.dev.yml volumes: - .:/srv/jekyll