-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
58 lines (55 loc) · 1.33 KB
/
compose.dev.yaml
File metadata and controls
58 lines (55 loc) · 1.33 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
services:
# Ollama service for local LLM
ollama:
image: ollama/ollama:latest
container_name: ats-buddy-ollama-dev
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
# Backend service (FastAPI) - Development mode with hot reload
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: ats-buddy-backend-dev
ports:
- "8000:8000"
environment:
- OLLAMA_HOST=http://ollama:11434
- PYTHONPATH=/app
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
volumes:
- ./backend:/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
# Frontend service (Next.js) - Development mode with hot reload
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: ats-buddy-frontend-dev
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
depends_on:
- backend
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
volumes:
ollama_data:
driver: local