-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
76 lines (71 loc) · 1.88 KB
/
docker-compose.dev.yml
File metadata and controls
76 lines (71 loc) · 1.88 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
# Docker Compose for development (without GPU)
version: '3.8'
services:
# Ollama Service (AI/OCR Engine) - CPU version
ollama:
image: ollama/ollama:latest
container_name: deepseek-ollama-dev
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 5
# Backend Service (NestJS API)
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: deepseek-backend-dev
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- APP_PORT=3000
- APP_HOST=0.0.0.0
- APP_CORS_ORIGINS=http://localhost,http://localhost:4200,http://localhost:80
- OLLAMA_HOST=http://ollama:11434
- OLLAMA_MODEL=deepseek-ocr
- OLLAMA_TIMEOUT=300000
- OLLAMA_MAX_RETRIES=3
- OLLAMA_RETRY_DELAY=1000
- OCR_DEFAULT_LANGUAGE=auto
- OCR_DEFAULT_OUTPUT_FORMAT=text
- OCR_MAX_PAGES=100
- OCR_DEFAULT_PROMPT=<image>\nExtract the text in the image.
- STORAGE_TYPE=local
- STORAGE_LOCAL_PATH=/app/uploads
- STORAGE_MAX_FILE_SIZE=52428800
- STORAGE_ALLOWED_MIMETYPES=application/pdf,image/png,image/jpeg
- LOG_LEVEL=debug
- RATE_LIMIT_ENABLED=false
volumes:
- uploads_data:/app/uploads
- ./backend/src:/app/src:ro
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
# Frontend Service (Angular + Nginx)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: deepseek-frontend-dev
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped
volumes:
ollama_data:
driver: local
uploads_data:
driver: local
networks:
default:
name: deepseek-network-dev