optimizes Stirling PDF resource uses

This commit is contained in:
2026-01-27 11:42:52 +01:00
parent 71b854bbbc
commit 9ecc9fa5ca
3 changed files with 48 additions and 1 deletions

View File

@@ -7,14 +7,15 @@
services:
stirling-pdf:
image: frooodle/s-pdf:latest
container_name: stirling-pdf
image: frooodle/s-pdf:latest
restart: unless-stopped
volumes:
- "/ansible_docker_compose/project_data/stirling-pdf/tessdata:/usr/share/tessdata:rw"
- "/ansible_docker_compose/project_data/stirling-pdf/configs/:/configs/:rw"
- "/ansible_docker_compose/project_data/stirling-pdf/logs/:/logs/:rw"
- "./customFiles/static/:/customFiles/static/:ro"
- "./configs/custom_settings.yml:/configs/custom_settings.yml:ro"
environment:
DOCKER_ENABLE_SECURITY: "false"
SECURITY_ENABLE_LOGIN: "false"
@@ -25,8 +26,14 @@ services:
SYSTEM_GOOGLEVISIBILITY: "false"
METRICS_ENABLED: "false"
SYSTEM_ENABLEANALYTICS: "false"
DISABLE_ADDITIONAL_FEATURES: "true"
networks:
- caddy_net
deploy:
resources:
limits:
memory: 4G
cpus: '2.0'
networks:
caddy_net:

View File

@@ -0,0 +1,5 @@
server:
jetty:
threads:
max: 10 # Maximum number of request processing threads
min: 5 # Minimum number of threads always kept running

View File

@@ -0,0 +1,35 @@
- name: Deploy stirling-pdf only
hosts: cit-docker-host
tasks:
- name: Run docker compose down for stirling-pdf
ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/stirling-pdf" --project-name "stirling-pdf" down
chdir: "/ansible_docker_compose/projects/stirling-pdf"
become: true
changed_when: true
- name: Deploy stirling-pdf project files
ansible.posix.synchronize:
src: "../docker_compose_applications/stirling-pdf/"
dest: "/ansible_docker_compose/projects/stirling-pdf/"
mode: push
archive: false
copy_links: false
delete: true
dirs: false
existing_only: false
recursive: true
owner: false
group: false
perms: true
links: true
times: false
verify_host: true
become: true
- name: Run docker compose up for stirling-pdf
ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/stirling-pdf" --project-name "stirling-pdf" up --detach --pull always --build --force-recreate
chdir: "/ansible_docker_compose/projects/stirling-pdf"
become: true
changed_when: true