docker_practice/docker-compose.yml

37 lines
711 B
YAML
Raw Normal View History

2017-11-21 11:05:06 +00:00
version: "3"
services:
server:
# build: ./.travis
image: yeasy/docker_practice:latest
2017-11-21 11:05:06 +00:00
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
windows:
image: nginx:alpine
2017-11-28 04:05:00 +00:00
volumes:
- ./:/srv/www
2017-11-28 07:35:51 +00:00
- .travis/conf.d:/etc/nginx/conf.d
ports:
- 4000:4000
2017-11-29 02:35:57 +00:00
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:development
ports:
- 4000:4000
volumes:
- ./:/srv/gitbook-src
command: server
2017-11-29 02:35:57 +00:00
# command: build