File size: 694 Bytes
86fce4f
 
 
 
 
 
 
14a7592
86fce4f
 
 
 
 
 
 
 
 
 
14a7592
86fce4f
 
 
14a7592
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3.8'

services:
  docx-to-pdf-arabic:
    build: .
    container_name: docx-pdf-converter-arabic
    ports:
      - "7860:7860"  # Changed from 8000:8000 to 7860:7860 for Hugging Face Spaces compatibility
    environment:
      - LANG=ar_SA.UTF-8
      - LC_ALL=ar_SA.UTF-8
      - PYTHONUNBUFFERED=1
    volumes:
      # Optional: Mount local directories for testing
      - ./test_files:/app/test_files:ro
      - ./test_results:/app/test_results
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:7860/"]  # Changed from 8000 to 7860
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s