# AI Prescription Assistant - Docker Compose Configuration version: '3.8' services: prescription-ai: build: . ports: - "8000:8000" volumes: - ./uploads:/app/uploads - ./outputs:/app/outputs - ./logs:/app/logs environment: - PYTHONPATH=/app - LOG_LEVEL=INFO - OCR_ENGINE=smart - MAX_FILE_SIZE_MB=10 - PROCESSING_TIMEOUT=60 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Optional: Redis for caching (uncomment if needed) # redis: # image: redis:alpine # ports: # - "6379:6379" # volumes: # - redis_data:/data # restart: unless-stopped # Optional: PostgreSQL for data persistence (uncomment if needed) # postgres: # image: postgres:13 # environment: # POSTGRES_DB: prescription_ai # POSTGRES_USER: prescription # POSTGRES_PASSWORD: secure_password # volumes: # - postgres_data:/var/lib/postgresql/data # ports: # - "5432:5432" # restart: unless-stopped volumes: redis_data: postgres_data: