Jelajahi Sumber

dockerised apache tika

Harsh Parikh 2 tahun lalu
induk
melakukan
cd80ead15d
1 mengubah file dengan 7 tambahan dan 19 penghapusan
  1. 7 19
      docker/docker-compose.yml

+ 7 - 19
docker/docker-compose.yml

@@ -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