-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.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
version: '3.4'
services:
sqldata:
container_name: sqldata
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
SA_PASSWORD: Your_password123
ACCEPT_EULA: Y
ports:
- "1433:1433"
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- "15672:15672"
- "5671:5671"
- "5672:5672"
environment:
RABBITMQ_DEFAULT_PASS: password
RABBITMQ_DEFAULT_USER: admin
# OpenTelemetry Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-collector-config.yml"]
volumes:
- ./otel-collector-config.yml:/etc/otel-collector-config.yml
- ./output:/etc/output:rw # Store the logs
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
order.api:
build:
context: .
dockerfile: NET6.Microservice.Order.API/Dockerfile
ports:
- "5089:80"
environment:
- DOTNET_ENVIRONMENT=Development
- Serilog:WriteTo:0:Args:path=/app/logs/NET6.Microservice.Order.API.logs.json
- MassTransit:MessageBusRabbitMQ=amqp://admin:password@rabbitmq:5671/
- MassTransit:IsUsingAzureServiceBus=false
- OpenTelemetry:OtelCollector=http://otel-collector:4317/
- OpenTelemetry:IsAzureExporter=false
depends_on:
- rabbitmq
workerservice:
build:
context: .
dockerfile: NET6.Microservice.WorkerService/Dockerfile
environment:
- DOTNET_ENVIRONMENT=Development
- Serilog:WriteTo:0:Args:path=/app/logs/NET6.Microservice.WorkerService.logs.json
- MassTransit:MessageBusRabbitMQ=amqp://admin:password@rabbitmq:5671/
- MassTransit:IsUsingAzureServiceBus=false
- OpenTelemetry:OtelCollector=http://otel-collector:4317/
- OpenTelemetry:IsAzureExporter=false
depends_on:
- rabbitmq