# documentation: https://github.com/Stirling-Tools/Stirling-PDF
# slogan: Stirling is a powerful web based PDF manipulation tool
# tags: pdf, manipulation, web, tool
# logo: svgs/stirling.png
# port: 8080

services:
  stirling-pdf:
    image: stirlingtools/stirling-pdf:latest
    volumes:
      - stirling-training-data:/usr/share/tesseract-ocr/5/tessdata
      - stirling-configs:/configs
      - stirling-custom-files:/customFiles/
      - stirling-logs:/logs/
    environment:
      - SERVICE_FQDN_SPDF_8080
      - DOCKER_ENABLE_SECURITY=false
    healthcheck:
      test: 'curl --fail --silent http://127.0.0.1:8080/api/v1/info/status | grep -q "UP" || exit 1'
      interval: 5s
      timeout: 20s
      retries: 10
