-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (81 loc) · 2.41 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
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: ${RabbitMq__Username}
RABBITMQ_DEFAULT_PASS: ${RabbitMq__Password}
healthcheck:
test: [ "CMD-SHELL", "rabbitmq-diagnostics -q ping" ]
interval: 10s
timeout: 10s
retries: 3
env_file:
- .env
mongodb:
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${MongoDb__Username}
MONGO_INITDB_ROOT_PASSWORD: ${MongoDb__Password}
env_file:
- .env
signalr-hub:
image: signalrhub
build:
context: ./ServerMonitoringSystem.SignalRHub
dockerfile: Dockerfile
environment:
- ASPNETCORE_URLS=${ASPNETCORE_URLS}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
ports:
- "8080:80"
env_file:
- .env
server-monitoring-system-collector:
image: server-monitoring-system-collector
build:
context: ./ServerMonitoringSystem.Collector
dockerfile: Dockerfile
depends_on:
rabbitmq:
condition: service_healthy
environment:
- ServerStatisticsSettings__SamplingIntervalSeconds=${ServerStatisticsSettings__SamplingIntervalSeconds}
- ServerStatisticsSettings__ServerIdentifier=${ServerStatisticsSettings__ServerIdentifier}
- RabbitMq__Hostname=${RabbitMq__Hostname}
- RabbitMq__Username=${RabbitMq__Username}
- RabbitMq__Password=${RabbitMq__Password}
env_file:
- .env
server-monitoring-system-analyzer:
image: server-monitoring-system-analyzer
build:
context: ./ServerMonitoringSystem.Analyzer
dockerfile: Dockerfile
depends_on:
- server-monitoring-system-collector
- mongodb
- signalr-hub
environment:
- RabbitMq__Hostname=${RabbitMq__Hostname}
- RabbitMq__Username=${RabbitMq__Username}
- RabbitMq__Password=${RabbitMq__Password}
- MongoDbSettings__ConnectionString=${MongoDbSettings__ConnectionString}
- SignalRSettings__SignalRUrl=${SignalRSettings__SignalRUrl}
env_file:
- .env
signalr-event-consumer:
image: signalr-event-consumer
build:
context: ./ServerMonitoringSystem.SignalREventConsumer
dockerfile: Dockerfile
depends_on:
- signalr-hub
environment:
- SignalRSettings__SignalRUrl=${SignalRSettings__SignalRUrl}
env_file:
- .env