-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
170 lines (160 loc) · 4.23 KB
/
docker-compose.dev.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
version: '3.8'
services:
top-identity-api:
build: services/top-identity-api/
container_name: top-identity-api
hostname: top-identity-api
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings:IdentityConnection=Data Source=sql-db;Initial Catalog=IdentityDB;User=sa;Password=srvSql21#
- Jwt:Secret=s8dfbTp-7c3sML2KqZBAJpuE4PBchr0069neLAta0Mo
- Jwt:Audience=http://top-identity-api/
- RabbitMq:HostName=rabbitmq
- Elastic:Uri=http://elasticsearch:9200/
ports:
- "5001:80"
depends_on:
- sql-db
- rabbitmq
- elasticsearch
networks:
- top-net
top-notification-consumer:
build: services/top-notification-consumer/
container_name: top-notification-consumer
hostname: top-notification-consumer
restart: always
environment:
- RabbitMq:HostName=rabbitmq
- SmtpConfig:SenderEmail=<EMAIL>
- SmtpConfig:Account=<EMAIL>
- SmtpConfig:Password=<PASSWORD>
- Elastic:Uri=http://elasticsearch:9200/
depends_on:
- rabbitmq
- elasticsearch
networks:
- top-net
top-profile-api:
build: services/top-profile-api/
container_name: top-profile-api
hostname: top-profile-api
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings:ProfileDbConnection=Data Source=sql-db;Initial Catalog=ProfileDB;User=sa;Password=srvSql21#
- Jwt:Secret=s8dfbTp-7c3sML2KqZBAJpuE4PBchr0069neLAta0Mo
- Jwt:Audience=http://top-identity-api/
- RabbitMq:HostName=rabbitmq
- Elastic:Uri=http://elasticsearch:9200/
ports:
- "5002:80"
depends_on:
- sql-db
- rabbitmq
- elasticsearch
networks:
- top-net
top-sync-consumer:
build: services/top-sync-consumer/
container_name: top-sync-consumer
hostname: top-sync-consumer
restart: always
environment:
- RabbitMq:HostName=rabbitmq
- ConnectionStrings:ProfileDbConnection=Data Source=sql-db;Initial Catalog=ProfileDB;User=sa;Password=srvSql21#
- Elastic:Uri=http://elasticsearch:9200/
depends_on:
- sql-db
- rabbitmq
- elasticsearch
networks:
- top-net
sql-db:
image: mcr.microsoft.com/mssql/server:2019-latest
container_name: sql-db
hostname: sql-db
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=srvSql21#
- MSSQL_TCP_PORT=1433
ports:
- "1433:1433"
volumes:
- type: volume
source: sql-db-data
target: /var/opt/mssql
networks:
- top-net
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
hostname: rabbitmq
restart: always
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- CLUSTERED=true
ports:
- "5672:5672"
- "15672:15672"
volumes:
- type: volume
source: rabbit-data
target: /var/lib/rabbitmq
networks:
- top-net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
container_name: elasticsearch
hostname: elasticsearch
restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ports:
- "9200:9200"
volumes:
- type: volume
source: logs
target: /var/log
- type: volume
source: esdata
target: /usr/share/elasticsearch/data
networks:
- top-net
kibana:
image: docker.elastic.co/kibana/kibana:7.8.0
container_name: kibana
hostname: kibana
restart: always
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5601:5601"
volumes:
- type: volume
source: logs
target: /var/log
depends_on:
- elasticsearch
networks:
- top-net
volumes:
sql-db-data:
name: sql-db-data
driver: local
rabbit-data:
name: rabbit-data
driver: local
esdata:
name: esdata
driver: local
logs:
name: logs
driver: local
networks:
top-net:
name: top-net
driver: bridge