-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
68 lines (66 loc) · 2.1 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
version: "3.9"
services:
client:
restart: always
build:
dockerfile: client.Dockerfile
environment:
- OTEL_LOG_LEVEL=debug
- OTEL_METRICS_EXPORTER=otlp
- OTEL_LOGS_EXPORTER=otlp
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_INSECURE=true
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_EXPORTER_OTLP_ENDPOINT=http://oteldb:4317
- OTEL_RESOURCE_ATTRIBUTES=service.name=client
server:
restart: always
command: ["server"]
build:
dockerfile: server.Dockerfile
environment:
- OTEL_LOG_LEVEL=debug
- OTEL_METRICS_EXPORTER=otlp
- OTEL_LOGS_EXPORTER=otlp
- OTEL_TRACES_EXPORTER=otlp
- OTEL_EXPORTER_OTLP_PROTOCOL=grpc
- OTEL_EXPORTER_OTLP_INSECURE=true
- OTEL_EXPORTER_OTLP_ENDPOINT=http://oteldb:4317
- OTEL_RESOURCE_ATTRIBUTES=service.name=server
# Observability stack
clickhouse:
image: clickhouse/clickhouse-server:23.10
volumes:
- ./build/clickhouse.xml:/etc/clickhouse-server/config.d/monitoring.xml
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', '127.0.0.1:8123/ping']
interval: 1s
timeout: 1s
retries: 30
oteldb:
image: ghcr.io/go-faster/oteldb:0.5.0
environment:
- OTELDB_STORAGE=ch
- CH_DSN=clickhouse://clickhouse:9000
- OTEL_LOG_LEVEL=info
- OTEL_TRACES_EXPORTER=none
- OTEL_METRICS_EXPORTER=none
- OTEL_LOGS_EXPORTER=stdout
- OTEL_RESOURCE_ATTRIBUTES=service.name=oteldb
depends_on: [clickhouse]
grafana:
image: "grafana/grafana:10.0.0"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_ALERTING_ENABLED=false
- GF_USERS_ALLOW_SIGN_UP=false
- GF_LOG_LEVEL=warn
- GF_INSTALL_PLUGINS=grafana-clickhouse-datasource
volumes:
- ./grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/default.yml
- ./grafana/dashboards:/etc/grafana/dashboards:ro
ports:
- "3000:3000"