Save all currently accumulated repository changes as a backup snapshot for Gitea so no local work is lost.
48 lines
1001 B
YAML
48 lines
1001 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
pdf_processor:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: pdf_processor
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8300:8300"
|
|
environment:
|
|
- PDF_PROCESSOR_API_KEY=${PDF_PROCESSOR_API_KEY:-pdf-processor-secret-key-2025}
|
|
- REDIS_HOST=${REDIS_HOST:-crm.clientright.ru}
|
|
- REDIS_PORT=${REDIS_PORT:-6379}
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD:-CRM_Redis_Pass_2025_Secure!}
|
|
- REDIS_DB=${REDIS_DB:-0}
|
|
- TZ=Europe/Moscow
|
|
volumes:
|
|
# Persist logs
|
|
- ./logs:/app/logs
|
|
# Temp storage for large files
|
|
- pdf_temp:/tmp
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8300/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
networks:
|
|
- pdf_network
|
|
|
|
volumes:
|
|
pdf_temp:
|
|
|
|
networks:
|
|
pdf_network:
|
|
driver: bridge
|
|
|
|
|
|
|
|
|