47 lines
1.9 KiB
Text
47 lines
1.9 KiB
Text
![]() |
---
|
||
|
services:
|
||
|
stirling-pdf:
|
||
|
image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:${STIRLINGPDF_VERSION}
|
||
|
container_name: stirlingpdf
|
||
|
networks:
|
||
|
- traefik
|
||
|
volumes:
|
||
|
- ./data/trainingData:/usr/share/tessdata # Required for extra OCR languages
|
||
|
- ./data/extraConfigs:/configs
|
||
|
- ./data/customFiles:/customFiles/
|
||
|
- ./data/logs:/logs/
|
||
|
- ./data/pipeline:/pipeline/
|
||
|
environment:
|
||
|
- DOCKER_ENABLE_SECURITY=false
|
||
|
- LANGS=de_DE
|
||
|
- SYSTEM_DEFAULTLOCALE=de-DE
|
||
|
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
|
||
|
- UI_APPNAME=${STIRLINGPDF_APPNAME:-StirlingPDF}
|
||
|
- UI_HOMEDESCRIPTION=${STIRLINGPDF_DESCRIPTION:-Your PDF Source}
|
||
|
- UI_APPNAMENAVBAR=${STIRLINGPDF_APPNAME:-StirlingPDF}
|
||
|
- SYSTEM_CUSTOMHTMLFILES=true
|
||
|
- DISABLE_PIXEL=true
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.docker.network=traefik"
|
||
|
- "traefik.http.routers.stirlingpdf.entrypoints=http"
|
||
|
- "traefik.http.routers.stirlingpdf.rule=Host(`${STIRLINGPDF_DOMAIN:?error}`)"
|
||
|
- "traefik.http.middlewares.stirlingpdf-https-redirect.redirectscheme.scheme=https"
|
||
|
- "traefik.http.routers.stirlingpdf.middlewares=traefik-https-redirect"
|
||
|
- "traefik.http.routers.stirlingpdf-secure.entrypoints=https"
|
||
|
- "traefik.http.routers.stirlingpdf-secure.rule=Host(`${STIRLINGPDF_DOMAIN:?error}`)"
|
||
|
- "traefik.http.routers.stirlingpdf-secure.tls=true"
|
||
|
- "traefik.http.routers.stirlingpdf-secure.service=stirlingpdf"
|
||
|
- "traefik.http.services.stirlingpdf.loadbalancer.server.port=8080"
|
||
|
{% if container_traefik_auth == 'sso' %}
|
||
|
- "traefik.http.routers.stirlingpdf-secure.middlewares=middlewares-authelia@file"
|
||
|
{% endif %}
|
||
|
healthcheck:
|
||
|
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]
|
||
|
interval: 5s
|
||
|
timeout: 10s
|
||
|
retries: 16
|
||
|
|
||
|
networks:
|
||
|
traefik:
|
||
|
external: true
|