-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (91 loc) · 2.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
98 lines (91 loc) · 2.08 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
version: '3.8'
networks:
pr-analyzer:
driver: bridge
services:
# MariaDB
db:
image: mariadb:11
ports:
- "3306:3306"
environment:
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=pr_analyzer
- MARIADB_USER=pr_analyzer
- MARIADB_PASSWORD=pr_analyzer
volumes:
- mariadb_data:/var/lib/mysql
restart: unless-stopped
networks:
- pr-analyzer
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# FastAPI Backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- .env
environment:
- DEBUG=true
- CORS_ORIGINS=["http://localhost:3000"]
- DATABASE_URL=mysql://pr_analyzer:pr_analyzer@db:3306/pr_analyzer
- ROCKETRIDE_URI=ws://host.containers.internal:5565
volumes:
- ./backend:/app
- ./pipeline:/app/pipeline
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
restart: unless-stopped
networks:
- pr-analyzer
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Next.js Frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXTAUTH_URL=http://localhost:3000
command: node server.js
restart: unless-stopped
networks:
- pr-analyzer
depends_on:
- backend
# Local Qdrant (optional - use Qdrant Cloud in production)
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_storage:/qdrant/storage
restart: unless-stopped
profiles:
- local-qdrant
volumes:
mariadb_data:
qdrant_storage:
networks:
pr-analyzer:
driver: bridge