forked from yeasy/docker_practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (32 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (32 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 dockerpracticesig/docker_practice
offline:
# this image build by GitHub Action
image: dockerpracticesig/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