| version: '3.8' | |
| services: | |
| docx-to-pdf-enhanced: | |
| build: . | |
| container_name: docx-pdf-converter-enhanced | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - LANG=ar_SA.UTF-8 | |
| - LC_ALL=ar_SA.UTF-8 | |
| - PYTHONUNBUFFERED=1 | |
| - TEMP_DIR=/tmp/conversions | |
| volumes: | |
| # Mount for persistent storage of conversions | |
| - ./conversions:/tmp/conversions | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s |