From 7da61ffa50df2a22a4ee5ca5aad4d324e2b63530 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 4 Oct 2016 19:40:27 +0100 Subject: [PATCH] Add Compose file for development Also fix regeneration. The starefossen/github-pages image had --force_polling set to poll the filesystem, but this didn't seem to work. Docker for Mac/Windows supports filesystem events, so it now uses this instead. Signed-off-by: Ben Firshman --- README.md | 4 +++- docker-compose.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 71246b8c4a..df1d316d29 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,10 @@ You have three options: ```bash git clone https://github.com/docker/docker.github.io.git cd docker.github.io - docker run -ti -v "$PWD":/usr/src/app -p 4000:4000 docs/docstage + docker-compose up ``` + + If you haven't got Docker Compose installed, [follow these installation instructions](https://docs.docker.com/compose/install/). 3. (Edit entirely in the browser, no local clone) Fork this repo in GitHub, change your fork's repository name to `YOUR_GITHUB_USERNAME.github.io`, and make any changes. In the first two options, the site will be staged at `http://localhost:4000` (unless Jekyll is behaving in some non-default way). diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..69e23b1e2d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "2" +services: + docs: + image: docs/docstage + ports: + - "4000:4000" + volumes: + - "./:/usr/src/app"