-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 2.18 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 2.18 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
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
# Control Plane Database
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: gateway
POSTGRES_USER: gateway
POSTGRES_PASSWORD: gateway
volumes:
- ./scripts/postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gateway -d gateway"]
interval: 5s
timeout: 5s
retries: 10
# High-Throughput Distributed State (Using standard redis for local dev stability)
redis:
image: redis:7.2-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
ports:
- "6379:6379"
# High-Ingestion Message Broker (Redpanda)
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:latest
command:
- redpanda start
- --smp 1
- --overprovisioned
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --rpc-addr 0.0.0.0:33145
- --advertise-rpc-addr redpanda:33145
ports:
- "18081:18081"
- "18082:18082"
- "19092:19092"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8082/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# Analytical Data Store (Data Plane)
clickhouse:
image: clickhouse/clickhouse-server:24.3-alpine
environment:
- CLICKHOUSE_USER=gateway
- CLICKHOUSE_PASSWORD=gateway
volumes:
- ./scripts/clickhouse-init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "8123:8123"
- "9000:9000"
healthcheck:
test: ["CMD-SHELL", "wget --spider -q http://localhost:8123/ping || exit 1"]
interval: 10s
timeout: 5s
retries: 5
# The Kenbun Dashboard (Control Plane)
ui:
build:
context: ./ui
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080/admin
ports:
- "3000:3000"