mirror of https://github.com/docker/docs.git
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:
parent
40f16b311e
commit
7da61ffa50
|
@ -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).
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
version: "2"
|
||||
services:
|
||||
docs:
|
||||
image: docs/docstage
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- "./:/usr/src/app"
|
Loading…
Reference in New Issue