-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.ci.yml
50 lines (46 loc) · 1.27 KB
/
docker-compose.ci.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
version: "3"
services:
clickhouse:
image: "ghcr.io/go-faster/clickhouse-server:23.12"
ports:
- "9000:9000"
- "8123:8123"
volumes:
- ./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
build:
context: ../../../
dockerfile: deploy.Dockerfile
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=go-faster.oteldb
ports:
- "9090:9090"
depends_on:
- clickhouse
prometheus:
image: "ghcr.io/go-faster/prom/prometheus:v2.55.1"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
volumes:
- "./prometheus.yml:/etc/prometheus/prometheus.yml"
ports:
- "9091:9090"
restart: unless-stopped
demo-1:
image: "ghcr.io/go-faster/prometheus-demo-service"
demo-2:
image: "ghcr.io/go-faster/prometheus-demo-service"
demo-3:
image: "ghcr.io/go-faster/prometheus-demo-service"