mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-16 11:33:40 +00:00
3a8c201fbe
Add travis CI/CD #196 #254
35 lines
634 B
YAML
35 lines
634 B
YAML
version: "3"
|
|
services:
|
|
|
|
server:
|
|
# build: ./.travis
|
|
image: yeasy/docker_practice:latest
|
|
ports:
|
|
- 4000:4000
|
|
volumes:
|
|
- ./:/srv/gitbook-src
|
|
command: server
|
|
|
|
windows:
|
|
image: nginx:alpine
|
|
volumes:
|
|
- ./:/srv/www
|
|
- .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
|