-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (65 loc) · 1.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (65 loc) · 1.92 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
# SkopaqTrader Docker Compose
#
# Quick start:
# cp .env.example .env # Add your API keys
# docker compose up -d # Start API + Telegram bot
#
# Individual services:
# docker compose up api # FastAPI only
# docker compose up telegram # Telegram bot only
# docker compose run --rm chat # Interactive chatbot
# docker compose run --rm scan # One-shot market scan
services:
# ── FastAPI Backend ──────────────────────────────────────────
api:
build: .
command: api
ports:
- "8000:8000"
env_file: .env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
# ── Telegram Bot ─────────────────────────────────────────────
telegram:
build: .
command: telegram
env_file: .env
restart: unless-stopped
depends_on:
api:
condition: service_healthy
# ── Interactive Chat (run interactively, not as daemon) ──────
chat:
build: .
command: chat
env_file: .env
stdin_open: true
tty: true
profiles:
- interactive
# ── Autonomous Daemon (paper mode) ──────────────────────────
daemon:
build: .
command: daemon
env_file: .env
profiles:
- trading
# ── Market Scanner (one-shot) ───────────────────────────────
scan:
build: .
command: scan
env_file: .env
profiles:
- tools
# ── MCP Server (for Claude Code / external agents) ──────────
mcp:
build: .
command: mcp
env_file: .env
stdin_open: true
profiles:
- mcp