Merge pull request #76 from bfirsh/add-compose-file

Add Compose file for development
This commit is contained in:
John Mulhausen 2016-10-05 12:57:36 -07:00 committed by GitHub
commit a3850c18d2
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"