forked from TunNetCom/TunNetCom-AionTime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (165 loc) · 5.78 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
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
version: '3.4'
services:
rabbitmq:
container_name: RabbitMq
image: "rabbitmq:3-management"
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
prometheus:
container_name: Prometheus_Container
image: prom/prometheus:v2.48.1
volumes:
- ./DockerConfigs/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "127.0.0.1:9090:9090"
otel-collector:
container_name: Otel_Collector_Container
image: otel/opentelemetry-collector-contrib:0.91.0
command: --config /etc/otelcol/otel-collector-config.yml
volumes:
- ./DockerConfigs/otel-collector-config.yml:/etc/otelcol/otel-collector-config.yml
ports:
- "127.0.0.1:4317:4317"
depends_on:
- jaeger
jaeger:
container_name: Jaeger_Container
image: jaegertracing/all-in-one:1.52
command: --query.ui-config=/etc/jaeger/jaeger-ui.json --collector.otlp.enabled=true --prometheus.server-url=http://prometheus:9090 --prometheus.query.support-spanmetrics-connector=true
environment:
- METRICS_STORAGE_TYPE=prometheus
- PROMETHEUS_QUERY_NORMALIZE_CALLS=true
- PROMETHEUS_QUERY_NORMALIZE_DURATION=true
volumes:
- ./DockerConfigs/jaeger-ui.json:/etc/jaeger/jaeger-ui.json
ports:
- "127.0.0.1:16686:16686"
SqlServerDb:
container_name: Sql_Server_Container
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- 8002:1433
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=TunetCom2024
azuredevopsidentityservice:
container_name: Azure_Devops_Identity_Service_Container
image: ${DOCKER_REGISTRY-}azuredevopsidentityservice
build:
context: .
dockerfile: src/TimeLogIdentityService/IdentityService.API/Dockerfile
environment:
ServiceName : Azure_Devops_Identity_Service
loki: http://loki:3100
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: https://+:443;http://+:80
OTEL_EXPORTER_JAEGER_AGENT_HOST : jaeger
OTEL_EXPORTER_JAEGER_AGENT_PORT : 6831
OTEL_EXPORTER_JAEGER_ENDPOINT : http://jaeger:14268/api/traces
OTEL_EXPORTER_OTLP_ENDPOINT : http://otel-collector:4317
-ASPNETCORE_HTTP_PORTS=52541
-ASPNETCORE_HTTPS_PORTS=52542
ports:
- 52541:80
- 52542:443
depends_on:
- loki
azuredevopswebhookservice:
container_name: Azure_Devops_Webhook_Service_Container
image: ${DOCKER_REGISTRY-}azuredevopswebhookservice
build:
context: .
dockerfile: src/AzureDevopsWebhookService/WebhookService.API/Dockerfile
environment:
ServiceName : Azure_Devops_Webhook_Service
loki: http://loki:3100
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: https://+:443;http://+:80
OTEL_EXPORTER_JAEGER_AGENT_HOST : jaeger
OTEL_EXPORTER_JAEGER_AGENT_PORT : 6831
OTEL_EXPORTER_JAEGER_ENDPOINT : http://jaeger:14268/api/traces
OTEL_EXPORTER_OTLP_ENDPOINT : http://otel-collector:4317
- ASPNETCORE_HTTP_PORTS=52543
- ASPNETCORE_HTTPS_PORTS=52544
ports:
- 52543:80
- 52544:443
depends_on:
- loki
- rabbitmq
tunnetcom.aiontime.timelogservice.api:
container_name: TimeLog_Service_Container
image: ${DOCKER_REGISTRY-}tunnetcomaiontimetimelogserviceapi
build:
context: .
dockerfile: src/TimeLogService/TimeLogService.API/Dockerfile
environment:
ServiceName : TimeLog_Service
loki: http://loki:3100
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: https://+:443;http://+:80
OTEL_EXPORTER_JAEGER_AGENT_HOST : jaeger
OTEL_EXPORTER_JAEGER_AGENT_PORT : 6831
OTEL_EXPORTER_JAEGER_ENDPOINT : http://jaeger:14268/api/traces
OTEL_EXPORTER_OTLP_ENDPOINT : http://otel-collector:4317
- ASPNETCORE_HTTP_PORTS=52545
- ASPNETCORE_HTTPS_PORTS=52546
ports:
- 52545:80
- 52546:443
depends_on:
- SqlServerDb
- loki
tunnetcom.aiontime.azuredevopsservice.api:
container_name: Azure_Devops_Service_Container
image: ${DOCKER_REGISTRY-}tunnetcomaiontimeazuredevopsserviceapi
build:
context: .
dockerfile: src/AzureDevopsService/AzureDevopsService.API/Dockerfile
environment:
ServiceName : Azure_Devops_Service
loki: http://loki:3100
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: https://+:443;http://+:80
OTEL_EXPORTER_JAEGER_AGENT_HOST: jaeger
OTEL_EXPORTER_JAEGER_AGENT_PORT : 6831
OTEL_EXPORTER_JAEGER_ENDPOINT : http://jaeger:14268/api/traces
OTEL_EXPORTER_OTLP_ENDPOINT : http://otel-collector:4317
- ASPNETCORE_HTTP_PORTS=52547
- ASPNETCORE_HTTPS_PORTS=52548
ports:
- 52547:80
- 52548:443
depends_on:
loki :
condition: service_healthy
loki:
container_name: Loki_Container
image: grafana/loki:master
ports:
- 3100:3100
command: -config.file=/etc/loki/local-config.yaml
healthcheck:
test: wget -q --tries=1 -O- http://localhost:3100/ready
interval: 3s
timeout: 3s
retries: 10
start_period: 10s
grafana:
container_name: Grafana_Container
volumes:
- ./DockerConfigs/grafana.ini:/DockerConfigs/grafana.ini
- ./DockerConfigs/datasource.yml:/DockerConfigs/datasource.yaml
- ./DockerConfigs/dashboard.yml:/DockerConfigs/dashboard.yml
- ./DockerConfigs/dotnet-otel-dashboard.json:/DockerConfigs/dotnet-otel-dashboard.json
- ./DockerConfigs/logs-dashboard.json:/DockerConfigs/logs-dashboard.json
image: grafana/grafana:master
ports:
- "3000:3000"
depends_on:
loki:
condition: service_healthy