|
@@ -1,24 +1,12 @@
|
|
|
-version: "3.8"
|
|
|
+version: "3.9"
|
|
|
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
|
|
|
+ image: apache/tika:latest
|
|
|
+ user: ${MY_UID}:${MY_GID}
|
|
|
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
|
|
|
+ environment:
|
|
|
+ - TAG
|
|
|
+ - TIKA_JAR
|
|
|
+ - TIKA_SERVER_CLAS
|