From 2f175a4011151d48690dabdac01182dc25de358f Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Wed, 26 Feb 2025 18:53:46 +0100 Subject: [PATCH] Initial version --- docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0f473f0 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +services: + stirling-pdf: + container_name: Stirling-PDF + image: stirlingtools/stirling-pdf + mem_limit: 4g + cpu_shares: 1024 + security_opt: + - no-new-privileges:true + healthcheck: + test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8080' || exit 1 + interval: 10s + timeout: 5s + retries: 3 + start_period: 90s + ports: + - 7890:8080 + volumes: + - /var/lib/docker/volumes/stirling/data:/usr/share/tessdata:rw # Required for extra OCR languages + - /var/lib/docker/volumes/stirling/config:/configs:rw + - /var/lib/docker/volumes/stirling/logs:/logs:rw + environment: + DOCKER_ENABLE_SECURITY: true # or false + SECURITY_ENABLELOGIN: true #or false + SECURITY_INITIALLOGIN_USERNAME: thedarty + SECURITY_INITIALLOGIN_PASSWORD: St&ph@ne10Nove.@1976 + INSTALL_BOOK_AND_ADVANCED_HTML_OPS: false #or true + SECURITY_CSRFDISABLED: true #or false + SYSTEM_DEFAULTLOCALE: fr_FR # or fr_FR or de_DE + UI_APPNAME: TheD@rtyPDF + UI_HOMEDESCRIPTION: TheD@rty PDF Description + UI_APPNAMENAVBAR: TheD@rty PDF + SYSTEM_MAXFILESIZE: 5000 # Set the maximum file size in MB + METRICS_ENABLED: true + SYSTEM_GOOGLEVISIBILITY: false # or true + restart: on-failure:5 \ No newline at end of file