mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-26 15:06:18 +00:00
81ec7190d6
Update offline read (#312)
43 lines
835 B
YAML
43 lines
835 B
YAML
version: "3"
|
||
services:
|
||
|
||
# $ docker-compose up server => up a server,Only Support Linux or macOS
|
||
|
||
server:
|
||
image: yeasy/docker_practice:latest
|
||
ports:
|
||
- 4000:4000
|
||
volumes:
|
||
- ./:/srv/gitbook-src
|
||
command: server
|
||
|
||
# $ docker-compose up build => build gitbook
|
||
|
||
build:
|
||
image: yeasy/docker_practice:latest
|
||
volumes:
|
||
- ./:/srv/gitbook-src
|
||
command: build
|
||
|
||
# $ docker run -it --rm -p 4000:80 dockerpracticecn/docker_practice
|
||
|
||
# $ docker up offline
|
||
|
||
offline:
|
||
# this image build by travis ci
|
||
image: dockerpracticecn/docker_practice
|
||
ports:
|
||
- 4000:80
|
||
|
||
# developer test docker image
|
||
|
||
development:
|
||
build: ./.travis
|
||
image: yeasy/docker_practice:latest
|
||
ports:
|
||
- 4000:4000
|
||
volumes:
|
||
- ./:/srv/gitbook-src
|
||
command: server
|
||
# command: build
|