-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 891 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 891 Bytes
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
version: '3.8'
services:
document-processor:
build:
context: .
dockerfile: Dockerfile
container_name: document-processor
ports:
- "8000:8000"
environment:
- APP_NAME=document-processor
- DEBUG=false
- API_KEY=your-secret-api-key-here
- DPI_TARGET=600
- STORAGE_PATH=/tmp/documents
- TEMP_PATH=/tmp/documents_temp
- LOG_LEVEL=INFO
- CORS_ORIGINS=http://java-service:8080,http://localhost:3000
volumes:
- ./documents:/tmp/documents
- ./logs:/app/logs
networks:
- document-processing-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
document-processing-network:
driver: bridge
volumes:
documents:
logs: