Add travis CI/CD #196 #254 (#256)

Add travis CI/CD #196 #254
This commit is contained in:
康怀帅
2017-11-27 23:38:13 -06:00
committed by GitHub
parent 93f8b01d32
commit 3a8c201fbe
4 changed files with 54 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
version: "3"
services:
docker_practice:
build: ./.travis
server:
# build: ./.travis
image: yeasy/docker_practice:latest
ports:
- 4000:4000
@@ -17,3 +17,18 @@ services:
- .travis/conf.d/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 4000:4000
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