Update project compose file
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>pull/494/head
parent
31ea892dfc
commit
64b75e997f
|
@ -2,30 +2,31 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
# $ docker-compose up server => up a server,Only Support Linux or macOS
|
gitbook-build:
|
||||||
server:
|
&gitbook-build
|
||||||
image: yeasy/docker_practice:latest
|
|
||||||
ports:
|
|
||||||
- 4000:4000
|
|
||||||
volumes:
|
|
||||||
- ./:/srv/gitbook-src
|
|
||||||
command: server
|
|
||||||
|
|
||||||
# $ docker-compose up build => build gitbook
|
|
||||||
|
|
||||||
build:
|
|
||||||
image: yeasy/docker_practice:latest
|
image: yeasy/docker_practice:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/srv/gitbook-src
|
- ./:/srv/gitbook-src
|
||||||
command: build
|
command: build
|
||||||
|
|
||||||
# $ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
|
gitbook-server:
|
||||||
offline:
|
<< : *gitbook-build
|
||||||
|
ports:
|
||||||
|
- 4000:4000
|
||||||
|
command: server
|
||||||
|
|
||||||
|
# docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
|
||||||
|
gitbook-offline:
|
||||||
|
&gitbook-offline
|
||||||
# this image build by GitHub Action
|
# this image build by GitHub Action
|
||||||
image: dockerpracticesig/docker_practice
|
image: dockerpracticesig/docker_practice:gitbook
|
||||||
ports:
|
ports:
|
||||||
- 4000:80
|
- 4000:80
|
||||||
|
|
||||||
|
vuepress-offline:
|
||||||
|
<< : *gitbook-offline
|
||||||
|
image: dockerpracticesig/docker_practice:vuepress
|
||||||
|
|
||||||
# developer test docker image
|
# developer test docker image
|
||||||
|
|
||||||
development:
|
development:
|
||||||
|
|
Loading…
Reference in New Issue