-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
123 lines (116 loc) · 2.91 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
116
117
118
119
120
121
122
123
version: '3.8'
services:
discovery-service:
image: discovery-service
container_name: discovery-service
build:
context: ./discovery-service
ports:
- "8761:8761"
networks:
- bank-network
gateway-service:
image: gateway-service
container_name: gateway-service
build:
context: ./gateway-service
ports:
- "8888:8888"
environment:
- DISCOVERY_SERVICE=http://discovery-service:8761/eureka/
- ALLOWED_ORIGINS=http://localhost:4200
depends_on:
- discovery-service
networks:
- bank-network
notification-service:
image: notification-service
container_name: notification-service
build:
context: ./notification-service
ports:
- "8885:8885"
environment:
- DISCOVERY_SERVICE=http://discovery-service:8761/eureka/
- MAIL_HOST=172.18.0.4
- MAIL_PORT=1025
- MAIL_USERNAME=brody
- MAIL_PASSWORD=brody
- EMAIL_SYSTEM=notification@bank.com
depends_on:
- discovery-service
- gateway-service
networks:
- bank-network
user-service:
image: user-service
container_name: user-service
build:
context: ./user-service
ports:
- "8884:8884"
environment:
- DISCOVERY_SERVICE=http://discovery-service:8761/eureka/
- MYSQL_USER=root
- MYSQL_PWD=root
- MYSQL_HOST=172.18.0.2
- MYSQL_PORT=3306
- MYSQL_DATABASE=utilisateur
- JWT_SECRET=AaZzBbCcYyDdXxEeWwFf
- JWT_EXPIRATION=604800000
depends_on:
- discovery-service
- gateway-service
- notification-service
networks:
- bank-network
customer-service:
image: customer-service
container_name: customer-service
build:
context: ./customer-service
ports:
- "8887:8887"
environment:
- DISCOVERY_SERVICE=http://discovery-service:8761/eureka/
- MYSQL_USER=root
- MYSQL_PWD=root
- MYSQL_HOST=172.18.0.2
- MYSQL_PORT=3306
- MYSQL_DATABASE=customer_db
- JWT_SECRET=AaZzBbCcYyDdXxEeWwFf
- JWT_EXPIRATION=604800000
depends_on:
- discovery-service
- gateway-service
- notification-service
networks:
- bank-network
account-service:
image: account-service
container_name: account-service
build:
context: ./account-service
ports:
- "8886:8886"
environment:
- DISCOVERY_SERVICE=http://discovery-service:8761/eureka/
- MYSQL_USER=root
- MYSQL_PWD=root
- MYSQL_HOST=172.18.0.2
- MYSQL_PORT=3306
- MYSQL_DATABASE=account_db
- AXON_HOST=172.18.0.3
- AXON_PORT=8124
- AXON_CONSOLE=df10b708-0:6p47cea5j2ff4ae0a17p227163886825
- JWT_SECRET=AaZzBbCcYyDdXxEeWwFf
- JWT_EXPIRATION=604800000
depends_on:
- discovery-service
- gateway-service
- customer-service
networks:
- bank-network
networks:
bank-network:
external: true