Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Docs: how to run Stirling PDF with Podman Quadlet

Open artur-sannikov opened this issue 10 months ago • 1 comments

It's possible to run Stirling PDF as a Podman Quadlet with Podman 4.4+.

Here is the Quadlet I use to run it locally:

[Container]
Image=docker.io/frooodle/s-pdf:latest
AutoUpdate=registry
PublishPort=8080:8080
Volume=/location/of/trainingData:/usr/share/tesseract-ocr/5/tessdata
Volume=/location/of/logs/logs:/logs

# Hardening
NoNewPrivileges=true
DropCapability=all
AddCapability=CHOWN
AddCapability=SETGID
AddCapability=SETUID

[Service]
Restart=always

# Hardening
DevicePolicy=closed

[Install]
WantedBy=default.target

It works on Fedora 39 with Podman 4.9.4 (I also add :Z flags to the volumes). Can it be added to the docs since you mention Podman?

artur-sannikov avatar Apr 14 '24 08:04 artur-sannikov

Sure no harm

Frooodle avatar Apr 14 '24 10:04 Frooodle