From dc99e4b1f4ba042652ca6ed76ddc1bfb95396c56 Mon Sep 17 00:00:00 2001 From: hcornet Date: Mon, 25 Nov 2024 19:22:02 +0100 Subject: [PATCH] update --- docker-compose.yml | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 47332f6..514b90f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ #### NETWORKS networks: - docker-traefik_front_network: + traefik_front_network: external: true back_network_stirling: driver: bridge @@ -10,19 +10,35 @@ networks: services: ### stirling-pdf stirling-pdf: - container_name: stirling-pdf-app - hostname: stirling-pdf-app - image: frooodle/s-pdf:latest + container_name: stirling-pdf + hostname: stirling-pdf + image: stirlingtools/stirling-pdf:latest networks: - - docker-traefik_front_network + - traefik_front_network volumes: - - ./trainingData:/usr/share/tesseract-ocr/4.00/tessdata - - ./extraConfigs:/configs + - ./data:/usr/share/tessdata:rw + - ./config:/configs:rw + - ./logs:/logs:rw environment: - DOCKER_ENABLE_SECURITY=false + - SECURITY_ENABLELOGIN=false + - LANGS=en_GB,en_US,ar_AR,de_DE,fr_FR,es_ES,zh_CN,zh_TW,ca_CA,it_IT,sv_SE,pl_PL,ro_RO,ko_KR,pt_BR,ru_RU,el_GR,hi_IN,hu_HU,tr_TR,id_ID + - SYSTEM_DEFAULTLOCALE=en-US + - UI_APPNAME=Stirling-PDF + - UI_HOMEDESCRIPTION=Demo site for Stirling-PDF Latest + - UI_APPNAMENAVBAR=Stirling-PDF Latest + - SYSTEM_MAXFILESIZE=100 + - METRICS_ENABLED=true + - SYSTEM_GOOGLEVISIBILITY=true + restart: on-failure:5 + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"] + interval: 5s + timeout: 10s + retries: 16 labels: - "traefik.enable=true" - - "traefik.docker.network=docker-traefik_front_network" + - "traefik.docker.network=traefik_front_network" ## HTTP - "traefik.http.routers.stirling-pdf-http.rule=Host(`stirling-pdf.tips-of-mine.com`)" - "traefik.http.routers.stirling-pdf-http.entrypoints=http"