-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose-v3.yml
104 lines (104 loc) · 2.29 KB
/
docker-compose-v3.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3"
services:
rabbit:
image:
rabbitmq:3-management
ports:
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=stackrabbit
- RABBITMQ_DEFAULT_PASS=password
networks:
cnalan:
aliases:
- rabbit
redis:
image:
redis
networks:
cnalan:
aliases:
- redis
db:
image: ##REGISTRY##/cloud_native_app_db
environment:
- MYSQL_ROOT_PASSWORD=##MYSQL_ROOT_PASSWORD##
- MYSQL_DATABASE=##MYSQL_DATABASE##
- MYSQL_USER=##MYSQL_USER##
- MYSQL_PASSWORD=##MYSQL_PASSWORD##
networks:
cnalan:
aliases:
- db
web:
image: ##REGISTRY##/cloud_native_app_web
ports:
- "80:80"
links:
- i
- s
- b
- p
networks:
cnalan:
i:
image: ##REGISTRY##/cloud_native_app_i
links:
- db
networks:
cnalan:
aliases:
- i
s:
image: ##REGISTRY##/cloud_native_app_s
links:
- redis
networks:
cnalan:
aliases:
- s
b:
image: ##REGISTRY##/cloud_native_app_b
links:
- w
- rabbit
networks:
cnalan:
aliases:
- b
p:
image: ##REGISTRY##/cloud_native_app_p
networks:
cnalan:
aliases:
- p
w:
image: ##REGISTRY##/cloud_native_app_w
networks:
cnalan:
aliases:
- w
w1:
image: ##REGISTRY##/cloud_native_app_w1
links:
- rabbit
- redis
networks:
cnalan:
aliases:
- w1
w2:
image: ##REGISTRY##/cloud_native_app_w2
links:
- rabbit
environment:
- W2_APIKEY=##W2_APIKEY##
- W2_TO=##W2_TO##
- W2_DOMAIN=##W2_DOMAIN##
networks:
cnalan:
aliases:
- w2
networks:
cnalan:
driver: overlay