File tree Expand file tree Collapse file tree 1 file changed +34
-14
lines changed Expand file tree Collapse file tree 1 file changed +34
-14
lines changed Original file line number Diff line number Diff line change 1
1
version : " 2"
2
+
2
3
services :
3
4
voting-app :
4
5
build : ./voting-app/.
5
6
volumes :
6
- - ./voting-app:/app
7
+ - ./voting-app:/app
7
8
ports :
8
9
- " 5000:80"
9
10
links :
10
11
- redis
12
+ networks :
13
+ - front-tier
14
+ - back-tier
11
15
12
- redis :
13
- image : redis
14
- ports : ["6379"]
16
+ result-app :
17
+ build : ./result-app/.
18
+ volumes :
19
+ - ./result-app:/app
20
+ ports :
21
+ - " 5001:80"
22
+ links :
23
+ - db
24
+ networks :
25
+ - front-tier
26
+ - back-tier
15
27
16
28
worker :
17
29
build : ./worker
18
30
links :
19
31
- db
20
32
- redis
33
+ networks :
34
+ - back-tier
35
+
36
+ redis :
37
+ image : redis
38
+ ports : ["6379"]
39
+ networks :
40
+ - back-tier
21
41
22
42
db :
23
43
image : postgres:9.4
24
44
volumes :
25
- - " myvolume:/var/lib/postgresql/data"
45
+ - " db-data:/var/lib/postgresql/data"
46
+ networks :
47
+ - back-tier
26
48
27
- result-app :
28
- build : ./result-app/.
29
- volumes :
30
- - ./result-app:/app
31
- ports :
32
- - " 5001:80"
33
- links :
34
- - db
35
49
volumes :
36
- myvolume :
50
+ db-data :
51
+
52
+ networks :
53
+ front-tier :
54
+ back-tier :
55
+
56
+
You can’t perform that action at this time.
0 commit comments