services: stirling-pdf: container_name: Stirling-PDF image: stirlingtools/stirling-pdf mem_limit: 4g cpu_shares: 1024 security_opt: - no-new-privileges:true healthcheck: test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8080' || exit 1 interval: 10s timeout: 5s retries: 3 start_period: 90s ports: - 7890:8080 volumes: # Use relative paths or environment variables for portability - ./tessdata:/usr/share/tessdata:rw - ./configs:/configs:rw - ./logs:/logs:rw environment: PUID: ${PUID:-1000} PGID: ${PGID:-1000} TZ: ${TIMEZONE:-UTC} DOCKER_ENABLE_SECURITY: "true" SECURITY_ENABLELOGIN: "true" SECURITY_INITIALLOGIN_USERNAME: ${ADMIN_USERNAME:-admin} SECURITY_INITIALLOGIN_PASSWORD: ${ADMIN_PASSWORD:-password123} INSTALL_BOOK_AND_ADVANCED_HTML_OPS: "true" SECURITY_CSRFDISABLED: "true" SYSTEM_DEFAULTLOCALE: en_US UI_APPNAME: StirlingPDF UI_HOMEDESCRIPTION: Stirling PDF Converter, for all your pdf file needs. UI_APPNAMENAVBAR: StirlingPDF SYSTEM_MAXFILESIZE: 5000 METRICS_ENABLED: true SYSTEM_GOOGLEVISIBILITY: false restart: unless-stopped # Changed to unless-stopped for better reliability