add stirling-pdf

This commit is contained in:
2025-12-07 10:56:16 +08:00
parent 11b8fdd226
commit a42d76eca7

View File

@@ -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'