docker_practice/docker-compose.yml

43 lines
835 B
YAML
Raw Normal View History

2017-11-21 11:05:06 +00:00
version: "3"
services:
# $ docker-compose up server => up a serverOnly Support Linux or macOS
server:
image: yeasy/docker_practice:latest
2017-11-21 11:05:06 +00:00
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
# $ docker-compose up build => build gitbook
build:
image: yeasy/docker_practice:latest
volumes:
- ./:/srv/gitbook-src
command: build
# $ docker run -it --rm -p 4000:80 dockerpracticecn/docker_practice
# $ docker up offline
offline:
# this image build by travis ci
image: dockerpracticecn/docker_practice
ports:
- 4000:80
# developer test docker image
development:
build: ./.travis
2017-12-10 04:53:57 +00:00
image: yeasy/docker_practice:latest
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
2017-11-29 02:35:57 +00:00
# command: build