参考链接:10分钟搭建一个PDF工具箱——Stirling PDF,满足你的所有PDF需求|好玩儿的Docker项目-我不是咕咕鸽 (laoda.de)
官方GitHub地址:https://github.com/Stirling-Tools/Stirling-PDF
YouTube视频地址:https://youtu.be/smc-6kAo7AM
哔哩哔哩:https://www.bilibili.com/video/BV1xi421R7jb/
创建并编辑 docker-compose.yml文件
docker-compose.yml
version: '3.3'
services:
stirling-pdf:
image: frooodle/s-pdf:latest
restart: always
ports:
- '8080:8080'
volumes:
- ./trainingData:/usr/share/tessdata #Required for extra OCR languages
- ./extraConfigs:/configs
# - ./customFiles:/customFiles/
# - ./logs:/logs/
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
DOCKER_ENABLE_SECURITY,
这个默认就好,如果要开启用户登陆模式的话,再改成 true,具体可以参考:https://github.com/Stirling-Tools/Stirling-PDF 里的 Login authentication来设置,这边就默认 false了INSTALL_BOOK_AND_ADVANCED_HTML_OPS
也是默认即可,这个是将calibre下载到stirling-pdf,以实现pdf到书籍和高级html转换用的,需要的可以打开
docker compose up -d
等待拉取好镜像,出现 done的字样之后,
理论上我们就可以输入 http://ip:8080
访问了。