From 96a324519869117879ba4b0894eb3b36f7fb0f3e Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 17 Dec 2024 20:30:32 +0100 Subject: [PATCH] add stirling pdf --- playbooks/apps/all.yaml | 1 + playbooks/apps/files/Caddyfile | 4 ++-- .../apps/files/stirling-pdf/docker-compose.yaml | 13 +++++++++++++ playbooks/apps/stirling-pdf.yaml | 11 +++++++++++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 playbooks/apps/files/stirling-pdf/docker-compose.yaml create mode 100644 playbooks/apps/stirling-pdf.yaml diff --git a/playbooks/apps/all.yaml b/playbooks/apps/all.yaml index 445f85d..a1205ca 100644 --- a/playbooks/apps/all.yaml +++ b/playbooks/apps/all.yaml @@ -18,6 +18,7 @@ - import_playbook: portainer.yaml # noqa: name[play] - import_playbook: privatebin.yaml # noqa: name[play] - import_playbook: shortener.yaml # noqa: name[play] +- import_playbook: stirling-pdf.yaml # noqa: name[play] - import_playbook: test_headers.yaml # noqa: name[play] - import_playbook: voice-pipeline.yaml # noqa: name[play] - import_playbook: wallabag.yaml # noqa: name[play] diff --git a/playbooks/apps/files/Caddyfile b/playbooks/apps/files/Caddyfile index caf78fe..1800131 100644 --- a/playbooks/apps/files/Caddyfile +++ b/playbooks/apps/files/Caddyfile @@ -272,10 +272,10 @@ aio.augendre.info { } } -cloud-old.augendre.info { +stirlingpdf.augendre.info { import common_headers import internal - reverse_proxy localhost:9999 + reverse_proxy localhost:9012 } ######################################################### diff --git a/playbooks/apps/files/stirling-pdf/docker-compose.yaml b/playbooks/apps/files/stirling-pdf/docker-compose.yaml new file mode 100644 index 0000000..7d3a0df --- /dev/null +++ b/playbooks/apps/files/stirling-pdf/docker-compose.yaml @@ -0,0 +1,13 @@ +services: + stirling-pdf: + image: stirlingtools/stirling-pdf:latest + ports: + - '127.0.0.1:9012:8080' + volumes: + - ./trainingData:/usr/share/tessdata # Required for extra OCR languages + - ./extraConfigs:/configs + environment: + - DOCKER_ENABLE_SECURITY=true + - SECURITY_ENABLE_LOGIN=true + - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false + - LANGS=en_GB,fr_FR,en_US diff --git a/playbooks/apps/stirling-pdf.yaml b/playbooks/apps/stirling-pdf.yaml new file mode 100644 index 0000000..cef619b --- /dev/null +++ b/playbooks/apps/stirling-pdf.yaml @@ -0,0 +1,11 @@ +--- +- name: Stirling-pdf + hosts: servers + gather_facts: false + tasks: + - name: Docker + ansible.builtin.include_role: + name: docker + + vars: + docker_app_name: stirling-pdf