-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
83 lines (70 loc) · 1.86 KB
/
docker-compose.dev.yml
File metadata and controls
83 lines (70 loc) · 1.86 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
services:
# Main OCR API Server
ocr-api:
build: .
image: ocr-processor:dev
container_name: ocr-api-dev
command: api
ports:
- "8000:8000"
environment:
# Application Configuration
- OCR_LOG_LEVEL=INFO
- OCR_DEFAULT_LANGUAGE=heb+eng
- OCR_DEFAULT_MODE=cli
- OCR_MAX_CONCURRENT_JOBS=2
- OCR_MAX_FILE_SIZE=104857600
- OCR_TIMEOUT_PER_FILE=300
# API Configuration
- OCR_ENABLE_API=true
- OCR_API_HOST=0.0.0.0
- OCR_API_PORT=8000
# Database Configuration
- OCR_ENABLE_DATABASE=true
- OCR_DATABASE_URL=postgresql://ocr_user:ocr_password@postgres:5432/ocr_db
# Disable notifications for dev
- OCR_ENABLE_NOTIFICATIONS=false
# Logging Configuration
- OCR_LOG_TO_FILE=true
- OCR_LOG_DIRECTORY=/app/logs
volumes:
# Mount data directories
- ./data/input:/app/data/input:ro
- ./data/output:/app/data/output
- ./logs:/app/logs
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: ocr-postgres-dev
environment:
- POSTGRES_DB=ocr_db
- POSTGRES_USER=ocr_user
- POSTGRES_PASSWORD=ocr_password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ocr_user -d ocr_db"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data:
driver: local
networks:
default:
name: ocr-dev-network
driver: bridge