automatically restart stirling-pdf on failure

This commit is contained in:
Mika Bomm 2024-12-16 16:09:21 +01:00
parent 3ce951d61d
commit 3de2d8c652

View file

@ -2,13 +2,14 @@ services:
stirling-pdf: stirling-pdf:
container_name: stirling-pdf container_name: stirling-pdf
image: frooodle/s-pdf:latest image: frooodle/s-pdf:latest
restart: unless-stopped
ports: ports:
- '55556:8080' - '55556:8080'
volumes: volumes:
- ./trainingData:/usr/share/tessdata #Required for extra OCR languages - ./trainingData:/usr/share/tessdata #Required for extra OCR languages
- ./extraConfigs:/configs - ./extraConfigs:/configs
# - ./customFiles:/customFiles/ # - ./customFiles:/customFiles/
# - ./logs:/logs/ # - ./logs:/logs/
environment: environment:
- DOCKER_ENABLE_SECURITY=false - DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false