From 7949400c17f266f9dd7138ffd1f38ff6db94af65 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Wed, 2 Oct 2024 16:00:58 +0200 Subject: [PATCH] Stirling PDF under Tools --- tools/docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tools/docker-compose.yml diff --git a/tools/docker-compose.yml b/tools/docker-compose.yml new file mode 100644 index 0000000..53592e1 --- /dev/null +++ b/tools/docker-compose.yml @@ -0,0 +1,28 @@ +services: + + stirling-pdf: + image: frooodle/s-pdf:latest + # ports: + # - '8080:8080' + networks: + - web + volumes: + - ${VOLUMES_PATH}/tools/stirling-pdf/trainingData:/usr/share/tesseract-ocr/5/tessdata #Required for extra OCR languages + - ${VOLUMES_PATH}/tools/stirling-pdf/extraConfigs:/configs +# - ${VOLUMES_PATH}/tools/stirling-pdf/customFiles:/customFiles/ +# - ${VOLUMES_PATH}/tools/stirling-pdf/logs:/logs/ + environment: + - DOCKER_ENABLE_SECURITY=false + labels: + - "traefik.enable=true" + - "traefik.http.routers.pdf.rule=Host(`pdf.${DOMAIN}`)" + - "traefik.http.routers.pdf.entrypoints=web" + - "traefik.http.services.pdf.loadbalancer.server.port=8080" + - "traefik.docker.network=web" + - "docker.group=tools" + +networks: + paperless: + web: + external: true +