docker部署Stirling-PDF

github网址:

GitHub - Stirling-Tools/Stirling-PDF: #1 Locally hosted web application that allows you to perform various operations on PDF files

1、官方docker镜像无法拉取,使用别人阿里云私人镜像仓库下载Stirling-PDF镜像:

registry.cn-hangzhou.aliyuncs.com/jeson/s-pdf:0.26.1-fat

2、部署Stirling-PDF

创建PDF目录

mkdir -p /data/s-pdf && cd /data/s-pdf

创建docker-compose.yaml,及配置:

vim docker-compose.yaml

下面端口和账号密码可以自行设置

version: '3.9'

services:

stirling-pdf:

image: registry.cn-hangzhou.aliyuncs.com/jeson/s-pdf:0.26.1-fat

container_name: Stirling-PDF

ports:

  • '6080:8080'

volumes:

  • /data/s-pdf/trainingData:/usr/share/tessdata # OCR 语言支持

  • /data/s-pdf/extraConfigs:/configs

  • /data/s-pdf/customFiles:/customFiles/

  • /data/s-pdf/logs:/logs/

environment:

DOCKER_ENABLE_SECURITY: true # 启用内部安全功能

SECURITY_ENABLELOGIN: true # 启用登录功能

SECURITY_INITIALLOGIN_USERNAME: root # Stirling-PDF登录账号

SECURITY_INITIALLOGIN_PASSWORD: root # Stirling-PDF登录密码

UI_APPNAME: PDF # 自定义导航标题

INSTALL_BOOK_AND_ADVANCED_HTML_OPS: false

LANGS: zh_CN # 设置语言

3、创建Stirling-PDF容器

docker compose up -d

查看容器状态

docker compose ps

相关推荐
tonngw2 小时前
【Mac 从 0 到 1 保姆级配置教程 16】- Docker 快速安装配置、常用命令以及实际项目演示
macos·docker·容器·开源·github·docker desktop·orbstack
debug 小菜鸟4 小时前
浏览器访问 AWS ECS 上部署的 Docker 容器(监听 80 端口)
docker·云计算·aws
SpikeKing5 小时前
Server - 使用 Docker 配置 PyTorch 研发环境
pytorch·docker·llm
Eiceblue5 小时前
Python读取PDF:文本、图片与文档属性
数据库·python·pdf
斯普信云原生组6 小时前
Docker构建自定义的镜像
java·spring cloud·docker
2201_761199046 小时前
k8s4部署
云原生·容器·kubernetes
小柏ぁ7 小时前
calico/node is not ready: BIRD is not ready: BGP not established with xxx
运维·docker·kubernetes
三劫散仙8 小时前
kubernetes jenkins pipeline优化拉取大仓库性能指定分支+深度
容器·kubernetes·jenkins
西京刀客8 小时前
k8s热更新-subPath 不支持热更新
云原生·容器·kubernetes·configmap·subpath
weixin_434936288 小时前
k8S 命令
linux·容器·kubernetes