2017-11-21 19:05:06 +08:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
|
2017-11-28 13:38:13 +08:00
|
|
|
server:
|
2017-11-23 09:42:22 +08:00
|
|
|
image: yeasy/docker_practice:latest
|
2017-11-21 19:05:06 +08:00
|
|
|
ports:
|
|
|
|
- 4000:4000
|
|
|
|
volumes:
|
|
|
|
- ./:/srv/gitbook-src
|
|
|
|
command: server
|
2017-11-28 11:59:21 +08:00
|
|
|
|
|
|
|
windows:
|
|
|
|
image: nginx:alpine
|
2017-11-28 12:05:00 +08:00
|
|
|
volumes:
|
2017-11-28 11:59:21 +08:00
|
|
|
- ./:/srv/www
|
2017-11-28 15:35:51 +08:00
|
|
|
- .travis/conf.d:/etc/nginx/conf.d
|
2017-11-28 11:59:21 +08:00
|
|
|
ports:
|
|
|
|
- 4000:4000
|
2017-11-29 10:35:57 +08:00
|
|
|
command: ["nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
|
2017-11-28 13:38:13 +08:00
|
|
|
|
|
|
|
build:
|
|
|
|
image: yeasy/docker_practice:latest
|
|
|
|
volumes:
|
|
|
|
- ./:/srv/gitbook-src
|
|
|
|
command: build
|
|
|
|
|
|
|
|
development:
|
|
|
|
build: ./.travis
|
2017-12-10 12:53:57 +08:00
|
|
|
image: yeasy/docker_practice:latest
|
2017-11-28 13:38:13 +08:00
|
|
|
ports:
|
|
|
|
- 4000:4000
|
|
|
|
volumes:
|
|
|
|
- ./:/srv/gitbook-src
|
|
|
|
command: server
|
2017-11-29 10:35:57 +08:00
|
|
|
# command: build
|