nm3clol-docker/tika/docker-compose.yml

31 lines
901 B
YAML

name: nm3clol
services:
tika:
image: apache/tika:latest-full
container_name: tika
restart: unless-stopped
configs:
- source: tika_config
target: /tika-config.xml
- source: tika_log4j2
target: /log4j2.xml
- source: tika_tesseract_ocr_config_properties
target: /TesseractOCRConfig.properties
command: -c /tika-config.xml
environment:
- TIKA_LOG_PATH=/tika-logs
entrypoint: [ "/bin/sh", "-c", "exec java -cp \"/customocr:/tika-server-standard-2.9.2.jar:/tika-extras/*\" org.apache.tika.server.core.TikaServerCli -h 0.0.0.0 $$0 $$@"]
volumes:
- tika-logs:/tika-logs
ports:
- "${TIKA_PORT-9998}:9998"
configs:
tika_config:
file: ../tika-config.xml
tika_log4j2:
file: ../tika-log4j2.xml
tika_tesseract_ocr_config_properties:
file: ../tika-TesseractOCRConfig.properties
volumes:
tika-logs: