-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
93 lines (84 loc) · 2.6 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
version: '3.4'
services:
# Infrastructure
postgres:
image: postgres
container_name: fott-postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- ./.docker/postgres/data:/var/lib/postgresql/data
- ./deploy/sql/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql
rabbitmq:
image: rabbitmq:3-management
container_name: fott-rabbitmq
ports:
- 5672:5672
- 15672:15672
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
container_name: fott-jaeger
restart: on-failure
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 14250:14250
- 9411:9411
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
prometheus:
image: prom/prometheus:latest
container_name: fott-prometheus
ports:
- "9090:9090"
volumes:
- ./deploy/otel/prometheus.yaml:/etc/prometheus/prometheus.yml
otel-collector:
image: otel/opentelemetry-collector:latest
container_name: fott-otel-collector
command: [ "--config=/etc/otel-collector-config.yaml" ]
ports:
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
volumes:
- ./deploy/otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
depends_on:
- fott-jaeger
- fott-prometheus
# Application
bz.fott.administration.webapi:
image: ${DOCKER_REGISTRY-}bzfottadministrationwebapi
container_name: fott-admin
build:
context: .
dockerfile: src/Bz.Fott.Administration.WebAPI/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ConnectionStrings__Administration=Server=fott-postgres;Port=5432;Database=fott_administration;User Id=${POSTGRES_USER};Password=${POSTGRES_PASSWORD}
- RabbitMQ__Host=fott-rabbitmq
- RabbitMQ__Port=5672
- RabbitMQ__VirtualHost=/
- RabbitMQ__Username=guest
- RabbitMQ__Password=guest
- OTEL_EXPORTER_OTLP_ENDPOINT=http://fott-otel-collector:4317
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
ports:
- "80"
- "443"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
depends_on:
- fott-postgres
- fott-rabbitmq
- fott-otel-collector