From dd44e6666c68c843dcd11c99a2846e49f085ca83 Mon Sep 17 00:00:00 2001 From: tavo Date: Sat, 2 Aug 2025 22:38:11 -0600 Subject: [PATCH] pdf --- stirlingpdf/docker-compose.yml | 58 ++++++++++++++++++++++++++++++++++ stirlingpdf/example.env | 3 ++ 2 files changed, 61 insertions(+) create mode 100644 stirlingpdf/docker-compose.yml create mode 100644 stirlingpdf/example.env diff --git a/stirlingpdf/docker-compose.yml b/stirlingpdf/docker-compose.yml new file mode 100644 index 0000000..d53ce81 --- /dev/null +++ b/stirlingpdf/docker-compose.yml @@ -0,0 +1,58 @@ +services: + ts-pdf: + image: tailscale/tailscale:latest + container_name: ts-pdf + network_mode: service:ts-mealie + depends_on: + - ts-pdf + restart: unless-stopped + hostname: ${TS_HOSTNAME} + environment: + - TS_AUTHKEY + - TS_EXTRA_ARGS + - TS_SERVE_CONFIG=/ts/serve.json + volumes: + - tailscale:/var/lib/tailscale + devices: + - /dev/net/tun:/dev/net/tun + cap_add: + - net_admin + - sys_module + configs: + - source: ts-config + target: /ts/serve.json + stirling-pdf: + image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest + volumes: + - pdf-data:/usr/share/tessdata + - pdf-data:/configs + - pdf-data:/customFiles/ + - pdf-data:/logs/ + - pdf-data:/pipeline/ + environment: + - DISABLE_ADDITIONAL_FEATURES=false +volumes: + pdf-data: + tailscale: +configs: + ts-config: + content: | + { + "TCP": { + "443": { + "HTTPS": true + } + }, + "Web": { + "$${TS_CERT_DOMAIN}:443": { + "Handlers": { + "/": { + "Proxy": "http://127.0.0.1:8080" + } + } + } + }, + "AllowFunnel": { + "$${TS_CERT_DOMAIN}:443": ${TS_ALLOW_FUNNEL:-false} + } + } diff --git a/stirlingpdf/example.env b/stirlingpdf/example.env new file mode 100644 index 0000000..e184c47 --- /dev/null +++ b/stirlingpdf/example.env @@ -0,0 +1,3 @@ +TS_HOSTNAME=stirlingpdf +TS_AUTHKEY=tskey-client-nnn-nnn +TS_EXTRA_ARGS=--advertise-tags=tag:container