Added stirling pdf to stack

This commit is contained in:
Phil 2024-09-23 12:19:14 -06:00
parent c11b90f04e
commit 50138230b4
4 changed files with 57 additions and 1 deletions

View File

@ -40,3 +40,18 @@ home.thesatelliteoflove.com:80 {
respond "Access denied" 403 respond "Access denied" 403
} }
} }
pdftools.thesatelliteoflove.com:80 {
@allowed {
remote_ip 100.64.0.0/10
}
handle @allowed {
reverse_proxy stirling-stirlingpdf-1:8080
}
handle {
respond "Access denied" 403
}
}

View File

@ -92,4 +92,8 @@
- name: Install glance - name: Install glance
import_tasks: glance.yml import_tasks: glance.yml
tags: glance tags: glance
- name: Install stirlingpdf
import_tasks: stirlingpdf.yml
tags: stirlingpdf

View File

@ -0,0 +1,19 @@
- name: make stirling directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/stirling
- name: Template out the compose file
ansible.builtin.template:
src: stirling-compose.yml.j2
dest: /opt/stacks/stirling/compose.yml
owner: root
mode: 644
- name: deploy stirling stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/stirling
files:
- compose.yml

View File

@ -0,0 +1,18 @@
version: '3.3'
services:
stirlingpdf:
image: frooodle/s-pdf:latest
volumes:
- ./trainingData:/usr/share/tessdata #Required for extra OCR languages
- ./extraConfigs:/configs
# - ./customFiles:/customFiles/
# - ./logs:/logs/
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
- LANGS=en_GB
networks:
default:
external: true
name: lava