From 934c8c33138ce7aab77910e56d80008ee4bbb2a8 Mon Sep 17 00:00:00 2001 From: nomuna Date: Mon, 11 Apr 2022 23:18:36 +0200 Subject: [PATCH] Add docker-compose for easier local preview (#287) --- README.md | 11 ++++++++++- docker-compose.yml | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 6b5b69c..d9ff696 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Orbit -> This theme is designed by Xiaoying Riley at [3rd Wave Media](http://themes.3rdwavemedia.com/). +> This theme is designed by Xiaoying Riley at [3rd Wave Media](http://themes.3rdwavemedia.com/). > Visit her [website](http://themes.3rdwavemedia.com/) for more themes. I have made this into a Jekyll Theme. Checkout the live demo [here](https://online-cv.webjeda.com). @@ -35,6 +35,15 @@ Change all the details from one place: ``_data/data.yml`` Watch my [video](https://www.youtube.com/embed/T2nx6tj-ZH4) on installation. +## To preview/edit localy with docker + +```sh +docker-compose up +``` + +*docker-compose.yml* file is used to create a container that is reachable under http://localhost:4000. +Changes *_data/data.yml* will be visible after a while. + ## Skins There are 6 color schemes available: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..65999ab --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3.8" +services: + jekyll: + image: jekyll/jekyll:3.8 + command: jekyll serve --force_polling + ports: + - 4000:4000 + volumes: + - .:/srv/jekyll \ No newline at end of file