Skip to content

Commit

Permalink
Add docker-compose.yml for quick run gitbook at local
Browse files Browse the repository at this point in the history
  This is a workaround, wait I fixed the `chusiang/gitbook` docker image,
we don't need manual run the loop script.
  • Loading branch information
chusiang committed Oct 25, 2017
1 parent d12e3f1 commit 2937c3d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '2'
services:

gitbook:
ports:
- 4000:4000/tcp
- 35729:35729/tcp
volumes:
- ./:/srv
image: chusiang/gitbook:alpine3.4
command:
- /srv/tool/loop.sh

3 changes: 3 additions & 0 deletions tool/loop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/usr/bin/tail -f /dev/null

0 comments on commit 2937c3d

Please sign in to comment.