optimizes Stirling PDF resource uses
This commit is contained in:
@@ -7,14 +7,15 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
stirling-pdf:
|
stirling-pdf:
|
||||||
image: frooodle/s-pdf:latest
|
|
||||||
container_name: stirling-pdf
|
container_name: stirling-pdf
|
||||||
|
image: frooodle/s-pdf:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "/ansible_docker_compose/project_data/stirling-pdf/tessdata:/usr/share/tessdata:rw"
|
- "/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/configs/:/configs/:rw"
|
||||||
- "/ansible_docker_compose/project_data/stirling-pdf/logs/:/logs/:rw"
|
- "/ansible_docker_compose/project_data/stirling-pdf/logs/:/logs/:rw"
|
||||||
- "./customFiles/static/:/customFiles/static/:ro"
|
- "./customFiles/static/:/customFiles/static/:ro"
|
||||||
|
- "./configs/custom_settings.yml:/configs/custom_settings.yml:ro"
|
||||||
environment:
|
environment:
|
||||||
DOCKER_ENABLE_SECURITY: "false"
|
DOCKER_ENABLE_SECURITY: "false"
|
||||||
SECURITY_ENABLE_LOGIN: "false"
|
SECURITY_ENABLE_LOGIN: "false"
|
||||||
@@ -25,8 +26,14 @@ services:
|
|||||||
SYSTEM_GOOGLEVISIBILITY: "false"
|
SYSTEM_GOOGLEVISIBILITY: "false"
|
||||||
METRICS_ENABLED: "false"
|
METRICS_ENABLED: "false"
|
||||||
SYSTEM_ENABLEANALYTICS: "false"
|
SYSTEM_ENABLEANALYTICS: "false"
|
||||||
|
DISABLE_ADDITIONAL_FEATURES: "true"
|
||||||
networks:
|
networks:
|
||||||
- caddy_net
|
- caddy_net
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 4G
|
||||||
|
cpus: '2.0'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
caddy_net:
|
caddy_net:
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
server:
|
||||||
|
jetty:
|
||||||
|
threads:
|
||||||
|
max: 10 # Maximum number of request processing threads
|
||||||
|
min: 5 # Minimum number of threads always kept running
|
||||||
35
playbooks/08-deploy-sterling.yml
Normal file
35
playbooks/08-deploy-sterling.yml
Normal 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
|
||||||
Reference in New Issue
Block a user