Stirling-PDF Docker Setup: Login, OCR Languages and Updates
Описание и применение
Настройка Stirling-PDF в Docker с безопасным логином, дополнительными языками OCR и увеличением лимита загрузки.
Задача
Deploying Stirling-PDF in Docker with secure default login, additional OCR languages, and proper upload limits.
Результат
Stirling-PDF runs securely with a custom admin account, supports additional OCR languages, and accepts large uploads behind nginx.
Рабочий процесс
- Create data directories and .env with random admin password
- Write compose.yaml with pinned image, 127.0.0.1 binding, env vars, volume mounts, and mem_limit 4g
- Run docker compose pull and docker compose up -d
- Verify service via /api/v1/info/status
- Adjust nginx client_max_body_size to 2000M
- Add .traineddata files to tessdata folder for additional OCR languages
- Restart container to load new languages
Доказательства
Use the official compose file with a pinned tag such as docker.stirlingpdf.com/stirlingtools/stirling-pdf:3.2.0, publish the port on 127.0.0.1:8080, and keep mem_limit: 4g.
A fresh install creates admin with the password stirling and prints both on the login page.
The standard image can OCR English, German, French, Portuguese and Simplified Chinese. For any other language, put its .traineddata file in the folder mounted at /usr/share/tessdata and restart.
- Дата записи: 2026-10-18T07:55:59.109Z