This repository has been archived by the owner on Jan 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (105 loc) · 2.1 KB
/
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
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
version: '3.7'
services:
#
# ---- Balancer service and related ----
balancer-service:
build: './balancer/service'
depends_on:
- aggregator-service
ports:
- 80:80
- 443:443
networks:
- services
#
# ---- Aggregator service and related ----
aggregator-service:
build: ./aggregator/service
depends_on:
- recipe-service
- token-service
- user-service
volumes:
- ./scripts:/opt
networks:
- services
#
# ---- Recipe service and related ----
recipe-service:
build: ./recipe/service
depends_on:
- recipe-cache
- recipe-database
volumes:
- ./scripts:/opt
links:
- recipe-cache:cache
- recipe-database:database
networks:
- services
- recipe-service
recipe-cache:
image: redis:5.0.7
volumes:
- './recipe/cache:/data'
restart: always
networks:
- recipe-service
recipe-database:
image: mysql:5.7.28
volumes:
- './recipe/database:/var/lib/mysql'
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
networks:
- recipe-service
#
# ---- User service and related ----
user-service:
build: ./user/service
depends_on:
- token-service
- user-cache
- user-database
volumes:
- ./scripts:/opt
links:
- user-cache:cache
- user-database:database
networks:
- services
- user-service
user-cache:
image: redis:5.0.7
volumes:
- './user/cache:/data'
restart: always
networks:
- user-service
user-database:
image: mysql:5.7.28
volumes:
- './user/database:/var/lib/mysql'
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: gluten
MYSQL_USER: gluten
MYSQL_PASSWORD: gluten
networks:
- user-service
#
# ---- Token service and related ----
token-service:
build: ./token/service
volumes:
- ./scripts:/opt
networks:
- services
- token-service
networks:
services:
user-service:
recipe-service:
token-service: