-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
128 lines (125 loc) · 2.27 KB
/
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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '3'
services:
adminer:
image: adminer
ports:
- 8080:8080
networks:
- shopDBNet
- authDBNet
redis:
image: redis
ports:
- 6379:6379
networks:
- managerNet
- daemonNet
shopDB:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- 5003:5003 #useless
networks:
- shopDBNet
- daemonDBNet
- adminNet
- customerNet
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 10s
retries: 10
volumes:
- shopDataa:/var/lib/mysql
shopDBMigration:
image: shopdbmigration
environment:
- REDIS_URL=redis
- DATABASE_URL=shopDB
networks:
- shopDBNet
daemon:
image: daemon
environment:
- REDIS_URL=redis
- DATABASE_URL=shopDB
ports:
- 5005:5005
networks:
- daemonDBNet
- daemonNet
manager:
image: manager
deploy:
replicas: 3
ports:
- 5001:5001
environment:
- REDIS_URL=redis
- DATABASE_URL=shopDB
networks:
- managerNet
customer:
image: customer
deploy:
replicas: 3
ports:
- 5006:5006
environment:
- REDIS_URL=redis
- DATABASE_URL=shopDB
networks:
- customerNet
admin:
image: admin
ports:
- 5010:5010
environment:
- REDIS_URL=redis
- DATABASE_URL=shopDB
networks:
- adminNet
authenticationDB:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 10s
retries: 10
networks:
- authDBNet
volumes:
- authDataa:/var/lib/mysql
authDBMigration:
image: authdbmigration
environment:
- DATABASE_URL=authenticationDB
networks:
- authDBNet
authentication:
image: authentication
environment:
- DATABASE_URL=authenticationDB
ports:
- 5002:5002
networks:
- authDBNet
networks:
authDBNet:
driver: overlay
managerNet:
driver: overlay
daemonDBNet:
driver: overlay
daemonNet:
driver: overlay
shopDBNet:
driver: overlay
adminNet:
driver: overlay
customerNet:
driver: overlay
volumes:
shopDataa:
authDataa: