Skip to content

Commit

Permalink
Update project compose file
Browse files Browse the repository at this point in the history
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
  • Loading branch information
khs1994 committed Jun 27, 2021
1 parent 31ea892 commit 64b75e9
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@ version: "3"

services:

# $ docker-compose up server => up a serverOnly Support Linux or macOS
server:
image: yeasy/docker_practice:latest
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server

# $ docker-compose up build => build gitbook

build:
gitbook-build:
&gitbook-build
image: yeasy/docker_practice:latest
volumes:
- ./:/srv/gitbook-src
command: build

# $ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
offline:
gitbook-server:
<< : *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
image: dockerpracticesig/docker_practice
image: dockerpracticesig/docker_practice:gitbook
ports:
- 4000:80

vuepress-offline:
<< : *gitbook-offline
image: dockerpracticesig/docker_practice:vuepress

# developer test docker image

development:
Expand Down

0 comments on commit 64b75e9

Please sign in to comment.