-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.08 KB
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
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
environment:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
CLICKHOUSE_PASSWORD: ""
ports:
- "${CLICKHOUSE_HTTP_PORT:-8123}:8123"
- "${CLICKHOUSE_NATIVE_PORT:-9000}:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
healthcheck:
test: ["CMD-SHELL", "clickhouse-client --query 'SELECT 1'"]
interval: 2s
timeout: 5s
retries: 10
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
environment:
DD_API_KEY: ${DD_API_KEY}
DD_SITE: ${DD_SITE:-datadoghq.com}
ports:
- "${OTEL_HOST_GRPC_PORT:-4317}:4317"
- "${OTEL_HOST_HTTP_PORT:-4318}:4318"
- "${OTEL_HOST_HEALTH_PORT:-13133}:13133"
volumes:
- ./scripts/otel-collector-datadog.yaml:/etc/otelcol-contrib/config.yaml:ro
depends_on:
clickhouse:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:13133/"]
interval: 2s
timeout: 5s
retries: 10
volumes:
clickhouse_data: