123456789101112131415161718192021222324 |
- version: "3.8"
- services:
- ## Apache Tika Server
- tika:
- image: apache/tika:${TAG}-full
- # Override default so we can add configuration on classpath
- entrypoint:
- [
- "/bin/sh",
- "-c",
- "exec java -cp /customocr:/${TIKA_JAR}-${TAG}.jar org.apache.tika.server.TikaServerCli -h 0.0.0.0 $$0 $$@"
- ]
- # Kept command as example but could be added to entrypoint too
- command: -c /tika-config.xml
- restart: on-failure
- ports:
- - "9998:9998"
- volumes:
- # Choose the configuration you want, or add your own custom one
- # - ./sample-configs/customocr/tika-config-inline.xml:/tika-config.xml
- - ./sample-configs/customocr/tika-config-rendered.xml:/tika-config.xml
- # source: https://github.com/apache/tika-docker/blob/master/docker-compose-tika-customocr.yml
|