-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.49 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
version: "2"
services:
# Collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.83.0
restart: always
command: ["--config=/etc/otel-collector-config.yaml", "--set=service.telemetry.logs.level=INFO"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "55679:55679" # zpages extension
depends_on:
- clickhouse
clickhouse:
image: clickhouse/clickhouse-server:23.9.3.12-alpine
ports:
- "9000:9000"
- "8123:8123"
grafana:
image: grafana/grafana:10.2.0
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
GF_INSTALL_PLUGINS: grafana-clickhouse-datasource,vertamedia-clickhouse-datasource
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: vertamedia-clickhouse-datasource
ports:
- "3001:3000"
habits-app:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./data/database.sqllite:/app/bin/main/data
environment:
- OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://otel-collector:4317
# - GENERATE_DATA_DAY_COUNT=360
depends_on:
- otel-collector