changed the way tika runs in docker-compose.yml, port 9998 already taken on the server currently

This commit is contained in:
Kikimanox
2022-08-31 16:20:04 +02:00
parent a8319072f8
commit 0561fd03af
2 changed files with 4 additions and 4 deletions
+3 -2
View File
@@ -12,7 +12,8 @@ services:
environment:
- PYTHONUNBUFFERED=1
tika:
image: apache/tika
image: apache/tika:1.28.4-full
entrypoint: ["/bin/sh", "-c", "java -jar /tika-server-1.28.4.jar -h 0.0.0.0 -p 9999"]
restart: always
ports:
- 9998:9998
- 9999:9999
@@ -12,8 +12,7 @@ import xml.etree.ElementTree as ET
from PyPDF2 import PdfReader
from swagger_server.classla import cl_utils
tika_server = "http://tika:9998/tika"
tika_server = "http://localhost:9998/tika"
tika_server = "http://tika:9999/tika"
# endpoint below to be used only for development purposes (don't need to run docker)
# tika_server = "http://rsdo.lhrs.feri.um.si:9998/tika"