docker_practice/docker-compose.yml

41 lines
805 B
Go
Raw Normal View History

2017-11-21 19:05:06 +08:00
version: "3"
2019-08-31 17:47:38 +08:00
2017-11-21 19:05:06 +08:00
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
2017-12-10 12:53:57 +08:00
image: yeasy/docker_practice:latest
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
2017-11-29 10:35:57 +08:00
# command: build