nm3clol-docker/tika/docker-compose.yml

19 lines
632 B
YAML

version: '3'
services:
tika:
image: apache/tika:latest-full
container_name: tika
restart: unless-stopped
environment:
- TIKA_LOG_PATH=/tika-logs
command: -c /tika-config.xml
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-config.xml:/tika-config.xml
- ../tika-data/logs:/tika-logs
- ../tika-data/log4j2.xml:/log4j2.xml
- ../TesseractOCRConfig.properties:/TesseractOCRConfig.properties
ports:
- "${TIKA_PORT-9998}:9998"