-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.54 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
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
services:
postgres:
image: postgres:18-alpine
environment:
POSTGRES_DB: temper
POSTGRES_USER: temper
POSTGRES_PASSWORD: temper_dev
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
- ./scripts/init-postgres.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temper"]
interval: 2s
timeout: 5s
retries: 10
redis:
image: redis:8-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 5s
retries: 10
clickhouse:
image: clickhouse/clickhouse-server:latest
environment:
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
CLICKHOUSE_PASSWORD: ""
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./scripts/init-clickhouse.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ["CMD-SHELL", "clickhouse-client --query 'SELECT 1'"]
interval: 2s
timeout: 5s
retries: 10
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
ports:
- "4317:4317"
- "4318:4318"
volumes:
- ./scripts/otel-collector.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:
postgres_data:
clickhouse_data: