Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.51 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
# Local development stack. Production deployments typically point
# CLICKHOUSE_HOST at a managed ClickHouse Cloud instance instead of running
# the `clickhouse` service below -- see backend/.env.example.
#
# Usage:
# cp backend/.env.example backend/.env
# # then fill in GEMINI_API_KEY and JWT_SECRET_KEY (openssl rand -hex 32)
# docker compose up --build
services:
clickhouse:
image: clickhouse/clickhouse-server:24.8
ports:
- "8123:8123" # HTTP interface (what clickhouse-connect and mcp-clickhouse use)
- "9000:9000" # native TCP interface (for clickhouse-client)
environment:
CLICKHOUSE_DB: continuity_agent
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: local-dev-password
volumes:
- clickhouse_data:/var/lib/clickhouse
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./backend
ports:
- "8080:8080"
env_file:
- backend/.env
environment:
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_PORT: 8123
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: local-dev-password
CLICKHOUSE_SECURE: "false"
CORS_ALLOW_ORIGINS: '["http://localhost:3000"]'
depends_on:
clickhouse:
condition: service_healthy
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_URL: http://localhost:8080
ports:
- "3000:3000"
depends_on:
- backend
volumes:
clickhouse_data: