mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-26 15:06:18 +00:00
64b75e997f
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
41 lines
805 B
Go
41 lines
805 B
Go
version: "3"
|
|
|
|
services:
|
|
|
|
gitbook-build:
|
|
&gitbook-build
|
|
image: yeasy/docker_practice:latest
|
|
volumes:
|
|
- ./:/srv/gitbook-src
|
|
command: build
|
|
|
|
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:gitbook
|
|
ports:
|
|
- 4000:80
|
|
|
|
vuepress-offline:
|
|
<< : *gitbook-offline
|
|
image: dockerpracticesig/docker_practice:vuepress
|
|
|
|
# developer test docker image
|
|
|
|
development:
|
|
build: ./.travis
|
|
image: yeasy/docker_practice:latest
|
|
ports:
|
|
- 4000:4000
|
|
volumes:
|
|
- ./:/srv/gitbook-src
|
|
command: server
|
|
# command: build
|