-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
74 lines (70 loc) · 1.8 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
74 lines (70 loc) · 1.8 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
services:
# Redis Cache
redis:
image: redis:7-alpine
container_name: codeintel-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
networks:
- codeintel-network
# Backend API (with hot reload)
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: codeintel-backend
ports:
- "8000:8000"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- OPENAI_API_KEY=${OPENAI_API_KEY}
- PINECONE_API_KEY=${PINECONE_API_KEY}
- PINECONE_INDEX_NAME=${PINECONE_INDEX_NAME}
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_KEY=${SUPABASE_KEY}
- SUPABASE_SERVICE_ROLE_KEY=${SUPABASE_SERVICE_ROLE_KEY}
- API_KEY=${API_KEY}
- BACKEND_API_URL=http://backend:8000
volumes:
- ./backend:/app
- ./backend/repos:/app/repos
depends_on:
redis:
condition: service_healthy
networks:
- codeintel-network
restart: unless-stopped
# Frontend DEV (Vite dev server with hot reload)
frontend:
image: node:20-alpine
container_name: codeintel-frontend-dev
working_dir: /app
ports:
- "3000:5173"
environment:
- VITE_API_URL=http://localhost:8000
- VITE_SUPABASE_URL=${SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${SUPABASE_KEY}
volumes:
- ./frontend:/app
- /app/node_modules # Anonymous volume to prevent overwriting node_modules
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
depends_on:
- backend
networks:
- codeintel-network
networks:
codeintel-network:
driver: bridge
volumes:
redis_data:
driver: local