diff --git a/stirling-pdf/docker-compose.yml b/stirling-pdf/docker-compose.yml new file mode 100644 index 0000000..1e72efd --- /dev/null +++ b/stirling-pdf/docker-compose.yml @@ -0,0 +1,41 @@ +services: + stirling-pdf: + image: stirlingtools/stirling-pdf:latest + container_name: stirling-pdf + ports: + - '8080:8080' + volumes: + # Persistent data storage + - ./stirling-data/tessdata:/usr/share/tessdata # OCR language files + - ./stirling-data/configs:/configs # Settings & database + - ./stirling-data/logs:/logs # Application logs + - ./stirling-data/customFiles:/customFiles:rw # Custom branding files + - ./stirling-data/pipeline:/pipeline # Automation configs + environment: + # Core Settings + - SECURITY_ENABLELOGIN=true # Enable user authentication + + # Language & Localization + - LANGS=en_GB # Change to your locale + + # System Configuration + - SYSTEM_DEFAULTLOCALE=en-GB # Default locale + - SYSTEM_GOOGLEVISIBILITY=false # Hide from search engines + - SYSTEM_ROOTURIPATH=/ # Base URL path + - SYSTEM_CONNECTIONTIMEOUTMINUTES=5 # Connection timeout + - SYSTEM_MAXFILESIZE=2000 # Max file size in MB + + # Optional: Logging + - SYSTEM_CUSTOMSTATICFILEPATH=/customFiles/static/ # Custom files path + + restart: unless-stopped + + # Optional: Resource limits + # deploy: + # resources: + # limits: + # memory: 4G + # cpus: '2.0' + # reservations: + # memory: 2G + # cpus: '1.0' \ No newline at end of file