docker-compose.yml 826 B

123456789101112131415161718192021222324
  1. version: "3.8"
  2. services:
  3. ## Apache Tika Server
  4. tika:
  5. image: apache/tika:${TAG}-full
  6. # Override default so we can add configuration on classpath
  7. entrypoint:
  8. [
  9. "/bin/sh",
  10. "-c",
  11. "exec java -cp /customocr:/${TIKA_JAR}-${TAG}.jar org.apache.tika.server.TikaServerCli -h 0.0.0.0 $$0 $$@"
  12. ]
  13. # Kept command as example but could be added to entrypoint too
  14. command: -c /tika-config.xml
  15. restart: on-failure
  16. ports:
  17. - "9998:9998"
  18. volumes:
  19. # Choose the configuration you want, or add your own custom one
  20. # - ./sample-configs/customocr/tika-config-inline.xml:/tika-config.xml
  21. - ./sample-configs/customocr/tika-config-rendered.xml:/tika-config.xml
  22. # source: https://github.com/apache/tika-docker/blob/master/docker-compose-tika-customocr.yml