Sterling PDF
Ein Server, der alles erdenkliche mit PDF's anstellen kann
Installation
Docker installieren
Falls Docker fehlt, installieren Sie es:
sudo apt update sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $USER && newgrp docker
sudo systemctl enable --now docker
Stirling-PDF starten (docker run)
Erstellen Sie ein Verzeichnis und starten Sie den Container:
text
mkdir ~/stirling-pdf && cd ~/stirling-pdf
mkdir configs trainingData logs customFiles
docker run -d \
--name stirling-pdf \
-p 8080:8080 \
-v $(pwd)/configs:/configs \
-v $(pwd)/trainingData:/usr/share/tesseract-ocr/5/tessdata \
-v $(pwd)/logs:/logs \
-v $(pwd)/customFiles:/customFiles \
-e DOCKER_ENABLE_SECURITY=true \
-e SECURITY_ENABLELOGIN=true \
-e SECURITY_INITIALLOGIN_USERNAME=admin \
-e SECURITY_INITIALLOGIN_PASSWORD=deinPasswort \
--restart unless-stopped \
stirlingtools/stirling-pdf:latest
Zugriff unter http://deine-ip:8080, Login mit admin/deinPasswort.
Mit Docker Compose (empfohlen)
Erstellen Sie docker-compose.yml:
text
version: '3.3'
services:
stirling-pdf:
image: stirlingtools/stirling-pdf:latest
container_name: stirling-pdf
ports:
- '8080:8080'
volumes:
- ./configs:/configs
- ./trainingData:/usr/share/tesseract-ocr/5/tessdata
- ./logs:/logs
- ./customFiles:/customFiles
environment:
- DOCKER_ENABLE_SECURITY=true
- SECURITY_ENABLELOGIN=true
- SECURITY_INITIALLOGIN_USERNAME=admin
- SECURITY_INITIALLOGIN_PASSWORD=deinPasswort
restart: unless-stopped
Führen Sie docker compose up -d aus. Updates: docker compose pull && docker compose up -d
No Comments