50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
# Stirling-PDF - PDF Manipulation Toolkit
|
|
# Domain: pdf.{{DOMAIN}}
|
|
# Database: None
|
|
# RAM: ~200MB | Pi-compatible: Yes
|
|
#
|
|
# Environment variables (set in Portainer):
|
|
# (none required for basic usage)
|
|
# SECURITY_ENABLELOGIN=true - Enable login (optional)
|
|
# SECURITY_INITIALLOGIN_USERNAME / SECURITY_INITIALLOGIN_PASSWORD - if login enabled
|
|
#
|
|
# First-time setup:
|
|
# No login by default — accessible immediately.
|
|
# Enable login via env vars if exposing externally.
|
|
|
|
services:
|
|
stirling-pdf:
|
|
image: stirlingtools/stirling-pdf:0.45.1
|
|
container_name: stirling-pdf
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- DOCKER_ENABLE_SECURITY=false
|
|
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
|
|
- LANGS=en_GB
|
|
volumes:
|
|
- stirling_data:/configs
|
|
- stirling_training:/usr/share/tessdata
|
|
networks:
|
|
- traefik-public
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/api/v1/info/status"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.stirling-pdf.rule=Host(`pdf.{{DOMAIN}}`)"
|
|
- "traefik.http.routers.stirling-pdf.entrypoints=websecure"
|
|
- "traefik.http.routers.stirling-pdf.tls=true"
|
|
- "traefik.http.routers.stirling-pdf.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.stirling-pdf.loadbalancer.server.port=8080"
|
|
|
|
volumes:
|
|
stirling_data:
|
|
stirling_training:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true |