Update offline read

Update offline read  (#312)
This commit is contained in:
康怀帅
2018-01-23 21:34:32 +08:00
committed by khs1994
parent 4667ffb091
commit 81ec7190d6
3 changed files with 23 additions and 30 deletions

View File

@@ -1,6 +1,8 @@
version: "3"
services:
# $ docker-compose up server => up a serverOnly Support Linux or macOS
server:
image: yeasy/docker_practice:latest
ports:
@@ -9,14 +11,7 @@ services:
- ./:/srv/gitbook-src
command: server
windows:
image: nginx:alpine
volumes:
- ./:/srv/www
- .travis/conf.d:/etc/nginx/conf.d
ports:
- 4000:4000
command: ["nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
# $ docker-compose up build => build gitbook
build:
image: yeasy/docker_practice:latest
@@ -24,6 +19,18 @@ services:
- ./:/srv/gitbook-src
command: build
# $ docker run -it --rm -p 4000:80 dockerpracticecn/docker_practice
# $ docker up offline
offline:
# this image build by travis ci
image: dockerpracticecn/docker_practice
ports:
- 4000:80
# developer test docker image
development:
build: ./.travis
image: yeasy/docker_practice:latest