diff --git a/proxy/Caddyfile b/proxy/Caddyfile index c155caf..e1167af 100644 --- a/proxy/Caddyfile +++ b/proxy/Caddyfile @@ -73,6 +73,11 @@ torrent.{$DOMAIN} http://torrent.{$DOMAIN} { import errorhandler } +pdf.{$DOMAIN} http://pdf.{$DOMAIN} { + reverse_proxy stirling-pdf:8080 + import errorhandler +} + root-ca.{$DOMAIN} http://root-ca.{$DOMAIN} { file_server * { root /usr/share/caddy/web diff --git a/tools/docker-compose.yml b/tools/docker-compose.yml new file mode 100644 index 0000000..2d2fb65 --- /dev/null +++ b/tools/docker-compose.yml @@ -0,0 +1,22 @@ +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 + + +networks: + paperless: + web: + external: true +