This repository was archived by the owner on Apr 3, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
228 lines (215 loc) · 6.03 KB
/
docker-compose.dev.yml
File metadata and controls
228 lines (215 loc) · 6.03 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# Development-focused docker-compose with hot reload and debugging
networks:
dev-net:
driver: bridge
name: hypercode_dev_net
volumes:
redis-dev-data:
postgres-dev-data:
services:
# ==================== CORE WITH HOT RELOAD ====================
hypercode-core-dev:
build:
context: ./HyperCode-V2.0/THE HYPERCODE/hypercode-core
dockerfile: Dockerfile.dev
args:
- DEV_MODE=true
container_name: hypercode-core-dev
environment:
- ENVIRONMENT=development
- DEBUG=true
- LOG_LEVEL=debug
- PRISMA_PY_DEBUG=1
- HYPERCODE_REDIS_URL=redis://redis-dev:6379
- HYPERCODE_DB_URL=postgresql://postgres:devpassword@postgres-dev:5432/hypercode_dev
- HYPERCODE_MEMORY_KEY=${HYPERCODE_MEMORY_KEY}
- API_KEY=${API_KEY}
- HYPERCODE_JWT_SECRET=dev-jwt-secret-change-in-production
- OTLP_EXPORTER_DISABLED=true
- PYTHONUNBUFFERED=1
volumes:
# Hot reload - mount source code
- ./HyperCode-V2.0/THE HYPERCODE/hypercode-core:/app:delegated
- /app/node_modules
- /app/.venv
depends_on:
redis-dev:
condition: service_healthy
postgres-dev:
condition: service_healthy
networks:
- dev-net
ports:
- "8000:8000"
- "5678:5678" # Python debugger port
stdin_open: true
tty: true
command: ["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "--wait-for-client", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
# ==================== AGENTS WITH HOT RELOAD ====================
crew-orchestrator-dev:
build:
context: ./agents/crew-orchestrator
dockerfile: Dockerfile.dev
container_name: crew-orchestrator-dev
environment:
- REDIS_URL=redis://redis-dev:6379
- PERPLEXITY_API_KEY=${PERPLEXITY_API_KEY}
- CORE_URL=http://hypercode-core-dev:8000
- DEBUG=true
- LOG_LEVEL=debug
volumes:
- ./agents/crew-orchestrator:/app:delegated
- ./Configuration_Kit:/app/hive_mind:ro
- /app/.venv
depends_on:
- redis-dev
- hypercode-core-dev
networks:
- dev-net
ports:
- "8080:8080"
- "5679:5678" # Debugger port
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080", "--reload"]
frontend-specialist-dev:
build:
context: ./agents/01-frontend-specialist
dockerfile: Dockerfile.dev
container_name: frontend-specialist-dev
environment:
- PERPLEXITY_API_KEY=${PERPLEXITY_API_KEY}
- REDIS_URL=redis://redis-dev:6379
- CORE_URL=http://hypercode-core-dev:8000
- DEBUG=true
volumes:
- ./agents/01-frontend-specialist:/app:delegated
- ./Configuration_Kit:/app/hive_mind:ro
- ./agents/base-agent/agent.py:/app/base_agent.py:ro
- /app/.venv
depends_on:
- redis-dev
- hypercode-core-dev
networks:
- dev-net
ports:
- "8002:8002"
- "5680:5678"
backend-specialist-dev:
build:
context: ./agents/02-backend-specialist
dockerfile: Dockerfile.dev
container_name: backend-specialist-dev
environment:
- PERPLEXITY_API_KEY=${PERPLEXITY_API_KEY}
- REDIS_URL=redis://redis-dev:6379
- CORE_URL=http://hypercode-core-dev:8000
- DEBUG=true
volumes:
- ./agents/02-backend-specialist:/app:delegated
- ./Configuration_Kit:/app/hive_mind:ro
- ./agents/base-agent/agent.py:/app/base_agent.py:ro
- /app/.venv
depends_on:
- redis-dev
- hypercode-core-dev
networks:
- dev-net
ports:
- "8003:8003"
- "5681:5678"
# ==================== INFRASTRUCTURE ====================
redis-dev:
image: redis:7-alpine
container_name: redis-dev
command: ["redis-server", "--appendonly", "no", "--save", ""]
ports:
- "6379:6379"
networks:
- dev-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
postgres-dev:
image: postgres:15-alpine
container_name: postgres-dev
environment:
- POSTGRES_DB=hypercode_dev
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=devpassword
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"
volumes:
- postgres-dev-data:/var/lib/postgresql/data
networks:
- dev-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
# ==================== DEV TOOLS ====================
# Redis Commander - Redis GUI
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
environment:
- REDIS_HOSTS=local:redis-dev:6379
ports:
- "8081:8081"
depends_on:
- redis-dev
networks:
- dev-net
# pgAdmin - Postgres GUI
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin-dev
environment:
- PGADMIN_DEFAULT_EMAIL=dev@hypercode.local
- PGADMIN_DEFAULT_PASSWORD=devpassword
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
ports:
- "5050:80"
volumes:
- ./dev-tools/pgadmin:/var/lib/pgadmin
depends_on:
- postgres-dev
networks:
- dev-net
# Mailhog - Email testing
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog-dev
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
networks:
- dev-net
# Nginx - Local reverse proxy for dev
nginx-dev:
image: nginx:alpine
container_name: nginx-dev
ports:
- "80:80"
volumes:
- ./dev-tools/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./agents/dashboard:/usr/share/nginx/html:ro
depends_on:
- hypercode-core-dev
- crew-orchestrator-dev
networks:
- dev-net
# Docs server with live reload
docs-server:
image: squidfunk/mkdocs-material:latest
container_name: docs-dev
ports:
- "8888:8000"
volumes:
- ./docs:/docs
command: serve --dev-addr 0.0.0.0:8000 --livereload
networks:
- dev-net