-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.67 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
# SessionPulse — Standalone deployment
#
# Usage:
# docker compose up -d
#
# Requires ClickHouse and Kafka/Redpanda running externally,
# or use this compose file alongside your existing infrastructure.
#
# Environment variables (set in .env or pass directly):
# CLICKHOUSE_HOST, CLICKHOUSE_PORT, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD
# KAFKA_BOOTSTRAP, KAFKA_TOPIC
# TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID (optional, for alert notifications)
services:
session-pulse:
build:
context: .
dockerfile: server/Dockerfile
container_name: session-pulse
restart: unless-stopped
ports:
- "8500:8500"
environment:
- CLICKHOUSE_HOST=${CLICKHOUSE_HOST:-clickhouse}
- CLICKHOUSE_PORT=${CLICKHOUSE_PORT:-8123}
- CLICKHOUSE_USER=${CLICKHOUSE_USER:-default}
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-}
- CLICKHOUSE_DATABASE=${CLICKHOUSE_DATABASE:-observability}
- KAFKA_BOOTSTRAP=${KAFKA_BOOTSTRAP:-redpanda:29092}
- KAFKA_TOPIC=${KAFKA_TOPIC:-observability_events}
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN:-}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8500/healthz"]
interval: 30s
timeout: 5s
retries: 3
networks:
- session-pulse-net
session-pulse-dashboard:
build:
context: .
dockerfile: dashboard/Dockerfile
container_name: session-pulse-dashboard
restart: unless-stopped
ports:
- "5100:3000"
depends_on:
session-pulse:
condition: service_healthy
networks:
- session-pulse-net
networks:
session-pulse-net:
driver: bridge
name: session-pulse-net