File tree 1 file changed +16
-15
lines changed
1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,31 @@ version: "3"
2
2
3
3
services :
4
4
5
- # $ docker-compose up server => up a server,Only Support Linux or macOS
6
- server :
7
- image : yeasy/docker_practice:latest
8
- ports :
9
- - 4000:4000
10
- volumes :
11
- - ./:/srv/gitbook-src
12
- command : server
13
-
14
- # $ docker-compose up build => build gitbook
15
-
16
- build :
5
+ gitbook-build :
6
+ &gitbook-build
17
7
image : yeasy/docker_practice:latest
18
8
volumes :
19
9
- ./:/srv/gitbook-src
20
10
command : build
21
11
22
- # $ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
23
- offline :
12
+ gitbook-server :
13
+ << : *gitbook-build
14
+ ports :
15
+ - 4000:4000
16
+ command : server
17
+
18
+ # docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
19
+ gitbook-offline :
20
+ &gitbook-offline
24
21
# this image build by GitHub Action
25
- image : dockerpracticesig/docker_practice
22
+ image : dockerpracticesig/docker_practice:gitbook
26
23
ports :
27
24
- 4000:80
28
25
26
+ vuepress-offline :
27
+ << : *gitbook-offline
28
+ image : dockerpracticesig/docker_practice:vuepress
29
+
29
30
# developer test docker image
30
31
31
32
development :
You can’t perform that action at this time.
0 commit comments