Added stirling pdf to stack
This commit is contained in:
parent
c11b90f04e
commit
50138230b4
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -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
|
19
roles/docker/tasks/stirlingpdf.yml
Normal file
19
roles/docker/tasks/stirlingpdf.yml
Normal 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
|
18
roles/docker/templates/stirling-compose.yml.j2
Normal file
18
roles/docker/templates/stirling-compose.yml.j2
Normal 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
|
Loading…
Reference in New Issue
Block a user