docker_practice/docker-compose.yml
2017-12-10 12:53:57 +08:00

36 lines
683 B
YAML

version: "3"
services:
server:
image: yeasy/docker_practice:latest
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
windows:
image: nginx:alpine
volumes:
- ./:/srv/www
- .travis/conf.d:/etc/nginx/conf.d
ports:
- 4000:4000
command: ["nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
build:
image: yeasy/docker_practice:latest
volumes:
- ./:/srv/gitbook-src
command: build
development:
build: ./.travis
image: yeasy/docker_practice:latest
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
# command: build