-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (60 loc) · 1.32 KB
/
docker-compose.yaml
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:
image: nginx
deploy:
replicas: 4
ports:
- target: 80
published: 80
protocol: tcp
volumes:
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/nginx.conf
service1:
build:
context: ./service1
dockerfile: Dockerfile
image: wasimd/service1
deploy:
replicas: 4
ports:
- target: 5000
published: 5000
protocol: tcp
environment:
DATABASE_URI: ${DATABASE_URI}
service2:
build:
context: ./service2
dockerfile: Dockerfile
image: wasimd/service2
deploy:
replicas: 4
ports:
- target: 5001
published: 5001
protocol: tcp
service3:
build:
context: ./service3
dockerfile: Dockerfile
image: wasimd/service3
deploy:
replicas: 4
ports:
- target: 5002
published: 5002
protocol: tcp
service4:
build:
context: ./service4
dockerfile: Dockerfile
image: wasimd/service4
deploy:
replicas: 4
ports:
- target: 5003
published: 5003
protocol: tcp