53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
# Stirling-PDF - PDF Manipulation Toolkit
|
|
# Domain: pdf.${DOMAIN}
|
|
# Database: None
|
|
# RAM: ~200MB (mem_limit: 512M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
#
|
|
# 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
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
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
|