-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.7 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
version: "3.8"
services:
prefect-server:
image: prefecthq/prefect:3-python3.11
container_name: prefect-server
command: prefect server start --host 0.0.0.0
ports:
- "4200:4200" # Dashboard UI
volumes:
- ./data/prefect:/root/.prefect
environment:
- PREFECT_SERVER_API_HOST=0.0.0.0
- PREFECT_UI_API_URL=http://localhost:4200/api
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:4200/api/health').raise_for_status()"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
clickhouse:
image: clickhouse/clickhouse-server:24.3
container_name: hyperliquid-clickhouse
ports:
- "8123:8123" # HTTP
- "9000:9000" # Native
volumes:
- ./data/clickhouse:/var/lib/clickhouse
- ./scripts/init_db.sql:/docker-entrypoint-initdb.d/init.sql
environment:
CLICKHOUSE_DB: hyperliquid
CLICKHOUSE_USER: default
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
interval: 10s
timeout: 5s
retries: 5
wallet-scoring:
build:
context: .
dockerfile: Dockerfile.scoring
container_name: wallet-scoring
depends_on:
clickhouse:
condition: service_healthy
prefect-server:
condition: service_healthy
environment:
- CLICKHOUSE_HOST=clickhouse
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL}
- PREFECT_API_URL=http://prefect-server:4200/api
volumes:
- ./logs:/app/logs
restart: unless-stopped