From fca9bb2b7ee579b0f3bc259459138b05f4b81722 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Mon, 14 Jul 2025 19:18:06 +0100 Subject: [PATCH] feat: add stirling-pdf --- .env | 1 + apps/cloudflare-ddns/compose.yaml | 1 + apps/stirling-pdf/.env | 5 +++++ apps/stirling-pdf/compose.yaml | 36 +++++++++++++++++++++++++++++++ compose.yaml | 1 + 5 files changed, 44 insertions(+) create mode 100644 apps/stirling-pdf/.env create mode 100644 apps/stirling-pdf/compose.yaml diff --git a/.env b/.env index 033f805..148ed06 100644 --- a/.env +++ b/.env @@ -169,6 +169,7 @@ SONARR_HOSTNAME=sonarr.${DOMAIN} SONARR4K_HOSTNAME=4k.sonarr.${DOMAIN} SONARRANIME_HOSTNAME=anime.sonarr.${DOMAIN} SPEEDTEST_TRACKER_HOSTNAME=speedtest-tracker.${DOMAIN} +STIRLING_PDF_HOSTNAME=stirling.${DOMAIN} STREAMYSTATS_HOSTNAME=streamystats.${DOMAIN} STREMIO_ACCOUNT_BOOTSTRAPPER_HOSTNAME=stremio-account-bootstrapper.${DOMAIN?} STREMIO_AI_SEARCH_HOSTNAME=ai-search.${DOMAIN?} diff --git a/apps/cloudflare-ddns/compose.yaml b/apps/cloudflare-ddns/compose.yaml index d0858a6..4a260d0 100644 --- a/apps/cloudflare-ddns/compose.yaml +++ b/apps/cloudflare-ddns/compose.yaml @@ -68,6 +68,7 @@ services: ${SONARR4K_HOSTNAME}, ${SONARRANIME_HOSTNAME}, ${SPEEDTEST_TRACKER_HOSTNAME}, + ${STIRLING_PDF_HOSTNAME}, ${STREAMYSTATS_HOSTNAME}, ${STREMIO_ACCOUNT_BOOTSTRAPPER_HOSTNAME}, ${STREMIO_AI_SEARCH_HOSTNAME}, diff --git a/apps/stirling-pdf/.env b/apps/stirling-pdf/.env new file mode 100644 index 0000000..e770a26 --- /dev/null +++ b/apps/stirling-pdf/.env @@ -0,0 +1,5 @@ +# Whether to enable Stirling's built-in user authentication system. +# Since we have authelia, its not required but you may enable it if you want. +ENABLE_LOGIN=false +# If you choose to enable login, set the initial password for the admin user here. +INITIAL_ADMIN_PASSWORD=admin diff --git a/apps/stirling-pdf/compose.yaml b/apps/stirling-pdf/compose.yaml new file mode 100644 index 0000000..e329b20 --- /dev/null +++ b/apps/stirling-pdf/compose.yaml @@ -0,0 +1,36 @@ +services: + stirling-pdf: + image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:latest + container_name: stirling-pdf + restart: unless-stopped + expose: + - 8080 + environment: + DISABLE_ADDITIONAL_FEATURES: "false" + LANGS: "en_GB" + SECURITY_ENABLELOGIN: ${ENABLE_LOGIN:-false} + SECURITY_INITIALLOGIN_USERNAME: "admin" + SECURITY_INITIALLOGIN_PASSWORD: "${INITIAL_ADMIN_PASSWORD?}" + SYSTEM_ENABLEANALYTICS: "false" + labels: + - "traefik.enable=true" + - "traefik.http.routers.stirling-pdf.rule=Host(`${STIRLING_PDF_HOSTNAME?}`)" + - "traefik.http.routers.stirling-pdf.entrypoints=websecure" + - "traefik.http.routers.stirling-pdf.tls.certresolver=letsencrypt" + - "traefik.http.routers.stirling-pdf.middlewares=authelia@docker" + - "traefik.http.services.stirling-pdf.loadbalancer.server.port=8080" + volumes: + - ./configs:/configs + - ./files:/customFiles/ + - ${DOCKER_DATA_DIR}/stirling-pdf/training-data:/usr/share/tessdata + - ${DOCKER_DATA_DIR}/stirling-pdf/logs:/logs/ + - ${DOCKER_DATA_DIR}/stirling-pdf/pipeline:/pipeline/ + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/info/status"] + interval: 1m + timeout: 10s + retries: 3 + start_period: 30s + profiles: + - stirling-pdf + - all \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 5df5452..fec0bf8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -58,6 +58,7 @@ include: - apps/sonarr/compose.yaml - apps/speedtest-tracker/compose.yaml - apps/sshbot/compose.yaml + - apps/stirling-pdf/compose.yaml - apps/streamystats/compose.yaml - apps/stremio-account-bootstrapper/compose.yaml - apps/stremio-ai-search/compose.yaml