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 <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2016-10-04 19:40:27 +01:00
parent 40f16b311e
commit 7da61ffa50
No known key found for this signature in database
GPG Key ID: 18296449E36D2F1E
2 changed files with 11 additions and 1 deletions

View File

@ -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).

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "2"
services:
docs:
image: docs/docstage
ports:
- "4000:4000"
volumes:
- "./:/usr/src/app"