Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
176 lines (165 loc) · 6.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
176 lines (165 loc) · 6.14 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: "3.9"
services:
# ─────────────────────────────────────────────
# Core Infrastructure
# ─────────────────────────────────────────────
redis:
image: redis:7.2-alpine
container_name: csa_redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# ─────────────────────────────────────────────
# Module 1: AI Brain Gateway
# ─────────────────────────────────────────────
ai-brain:
build:
context: ./apps/ai-brain
dockerfile: Dockerfile
container_name: csa_ai_brain
restart: unless-stopped
ports:
- "${AI_BRAIN_PORT:-3000}:3000"
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
# ─────────────────────────────────────────────
# Module 2a: GitHub Recon Agent
# ─────────────────────────────────────────────
github-recon:
build:
context: ./apps/ingestion/github-recon
dockerfile: Dockerfile
container_name: csa_github_recon
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
# ─────────────────────────────────────────────
# Module 2b: Whale Network Tracker
# ─────────────────────────────────────────────
whale-tracker:
build:
context: ./apps/ingestion/whale-tracker
dockerfile: Dockerfile
container_name: csa_whale_tracker
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
# ─────────────────────────────────────────────
# Module 2c: SEC Edgar Poller
# ─────────────────────────────────────────────
sec-poller:
build:
context: ./apps/ingestion/sec-poller
dockerfile: Dockerfile
container_name: csa_sec_poller
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
# ─────────────────────────────────────────────
# Module 3a: Twitter/X Headless Scraper
# ─────────────────────────────────────────────
twitter-scraper:
build:
context: ./apps/social-mining/twitter-scraper
dockerfile: Dockerfile
container_name: csa_twitter_scraper
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
# Playwright needs extra permissions
shm_size: "2gb"
security_opt:
- seccomp:unconfined
# ─────────────────────────────────────────────
# Module 3b: Reddit Keyword Miner
# ─────────────────────────────────────────────
reddit-miner:
build:
context: ./apps/social-mining/reddit-miner
dockerfile: Dockerfile
container_name: csa_reddit_miner
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
# ─────────────────────────────────────────────
# Module 4: Scoring Engine + WebSocket Server
# ─────────────────────────────────────────────
scoring-engine:
build:
context: ./packages/scoring-engine
dockerfile: Dockerfile
container_name: csa_scoring_engine
restart: unless-stopped
ports:
- "${WS_PORT:-3001}:3001"
env_file: .env
depends_on:
redis:
condition: service_healthy
ai-brain:
condition: service_healthy
environment:
- REDIS_URL=redis://redis:6379
- AI_BRAIN_URL=http://ai-brain:3000
# ─────────────────────────────────────────────
# Module 4: Audio Alert Worker (host network for TTS access)
# ─────────────────────────────────────────────
audio-worker:
build:
context: ./apps/social-mining/audio-worker
dockerfile: Dockerfile
container_name: csa_audio_worker
restart: unless-stopped
env_file: .env
depends_on:
redis:
condition: service_healthy
network_mode: host
volumes:
- /dev/snd:/dev/snd # Audio device access
devices:
- /dev/snd
volumes:
redis_data:
driver: local
networks:
default:
name: csa_network
driver: bridge