-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-test.yml
188 lines (174 loc) · 5.23 KB
/
docker-compose-test.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: '3.8'
services:
rabbitmq:
container_name: rabbitmq
image: 'bitnami/rabbitmq:3.8.9'
environment:
- RABBITMQ_USERNAME=test
- RABBITMQ_PASSWORD=test
ports:
- 5672:5672
- 5671:5671
- 15672:15672
networks:
rabbitmq-network:
db:
container_name: database
build:
context: .
dockerfile: Data/Dockerfile
environment:
- MSSQL_SA_PASSWORD=Dexcelence!1
networks:
mssql-network:
identity:
container_name: identity
restart: on-failure
build:
context: .
dockerfile: IdentityServer/Dockerfile.dev
depends_on:
- db
environment:
- ConnectionStrings__DefaultConnection=Server=db;Database=identity;User=sa;Password=Dexcelence!1;
- App__Self__IssuerUri=https://localhost:5005
- App__Api__DeXApiUrl=https://api:5001
- ASPNETCORE_URLS=http://+:5004;https://+:5005;
- ASPNETCORE_HTTPS_PORT=5005
- ASPNETCORE_Kestrel__Certificates__Default__Password=W64x4AD8dNj9kImdX3tayS
- ASPNETCORE_Kestrel__Certificates__Default__Path=/app/dex-identity.pfx
- App__JobScheduler__ClientId=dex-jobscheduler
- App__JobScheduler__ClientSecret=test
- App__ApiAuthentication__ClientSecret=test
- Use__In_Memory_Database='true'
networks:
mssql-network:
ports:
- 5004:5004
- 5005:5005
elasticsynchronizer:
container_name: elasticsynchronizer
restart: on-failure
build:
context: .
dockerfile: ElasticSynchronizer/Dockerfile
depends_on:
- rabbitmq
environment:
- App__RabbitMQ__Hostname=rabbitmq
- App__RabbitMQ__Username=test
- App__RabbitMQ__Password=test
- App__Elastic__Hostname=elasticsearch
- App__Elastic__Username=elastic
- App__Elastic__Password=changeme
- App__Elastic__IndexUrl=projects/
networks:
rabbitmq-network:
mssql-network:
api:
container_name: api
restart: on-failure
build:
context: .
dockerfile: API/Dockerfile.dev
depends_on:
- db
environment:
- ConnectionStrings__DefaultConnection=Server=db;Database=master;User=sa;Password=Dexcelence!1;
- App__IdentityServer__IdentityUrl=http://identity:5004
- App__IdentityServer__ClientId=dex-api
- App__IdentityServer__ClientSecret=test
- ASPNETCORE_URLS=http://+:5000;https://+:5001;
- ASPNETCORE_HTTPS_PORT=5001
- ASPNETCORE_Kestrel__Certificates__Default__Password=xI90DrNea7M6UJFNDwip6t
- ASPNETCORE_Kestrel__Certificates__Default__Path=/app/dex-api.pfx
- App__RabbitMQ__Hostname=rabbitmq
- App__RabbitMQ__Username=test
- App__RabbitMQ__Password=test
- App__Elastic__Hostname=elasticsearch
- App__Elastic__Username=elastic
- App__Elastic__Password=changeme
- App__Elastic__IndexUrl=projects/
- App__SendGrid__EmailFrom=test
- App__SendGrid__ApiKey=test
- Use__In_Memory_Database='true'
networks:
mssql-network:
rabbitmq-network:
ports:
- 5000:5000
- 5001:5001
elasticsearch:
container_name: elasticsearch
build:
context: elasticsearch/
args:
ELK_VERSION: 7.10.0
volumes:
- type: bind
source: ./elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: bind
source: ./elasticsearch/config/analysis/wn_s.txt
target: /usr/share/elasticsearch/config/analysis/wn_s.txt
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: changeme
# Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node
networks:
mssql-network:
notificationservice:
container_name: notificationservice
restart: on-failure
build:
context: .
dockerfile: NotificationSystem/Dockerfile
depends_on:
- rabbitmq
environment:
- App__RabbitMQ__Hostname=rabbitmq
- App__RabbitMQ__Username=test
- App__RabbitMQ__Password=test
- App__SendGrid__ApiKey=test
- App__SendGrid__EmailFrom=test
stdin_open: true
tty: true
networks:
rabbitmq-network:
jobscheduler:
container_name: jobscheduler
restart: on-failure
build:
context: .
dockerfile: JobScheduler/Dockerfile
environment:
- Config__IdentityServerConfig__IdentityUrl=http://identity:5004/
- Config__IdentityServerConfig__ClientId=dex-jobscheduler
- Config__IdentityServerConfig__ClientSecret=test
- Config__ApiConfig__ApiUrl=https://api:5001/
- Config__RabbitMQ__Hostname=rabbitmq
- Config__RabbitMQ__Username=test
- Config__RabbitMQ__Password=test
networks:
rabbitmq-network:
mssql-network:
volumes:
elasticsearch:
networks:
mssql-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
rabbitmq-network:
driver: bridge