-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1017 Bytes
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.7'
services:
nginx:
container_name: nginx
build: ./devops/nginx/
ports:
- target: 80
published: 80
volumes:
- ./devops/nginx/cache:/tmp/cache
- ./devops/nginx/logs:/var/log/nginx/
depends_on:
- api1
- api2
api1:
container_name: api1
build:
context: api1
dockerfile: Dockerfile
volumes:
- ./api1:/opt/api1
env_file:
- devops/common.env
ports:
- target: 5000
published: 5000
expose:
- 5000
depends_on:
- redis
api2:
container_name: api2
build:
context: api2
dockerfile: Dockerfile
env_file:
- devops/common.env
ports:
- target: 8080
published: 8080
- target: 8081
published: 8081
expose:
- 8080
- 8081
depends_on:
- redis
redis:
container_name: redis
image: redis:6.0.8-alpine
ports:
- target: 6379
published: 6379
expose:
- 6379