Wiki source code of Owncloud Infinite Scale (with Full Text Search and OCR)
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.4 | 1 | Owncloud Infinite Scale (OCIS) can be used as a file cloud and it is very easy to integrate full text search using a "tika" server. It is recommended that you use this setup in conjunction with the [[Owncloud client>>https://owncloud.com/desktop-app/]] to synchronize data between the cloud and your PC. |
![]() |
1.1 | 2 | |
3 | |||
4 | **docker-compose.yml** | ||
5 | |||
6 | {{code language="yaml"}} | ||
7 | version: "3.3" | ||
8 | |||
9 | volumes: | ||
10 | traefik: | ||
11 | ocis: | ||
12 | ocis-config: | ||
13 | |||
14 | services: | ||
15 | traefik: | ||
16 | image: "traefik:v2.10.4" | ||
17 | container_name: "traefik" | ||
18 | restart: unless-stopped | ||
19 | command: | ||
20 | - "--api.insecure=true" | ||
21 | - "--providers.docker=true" | ||
22 | - "--providers.docker.exposedbydefault=false" | ||
23 | - "--entrypoints.websecure.address=:443" | ||
24 | - "--certificatesresolvers.myresolver.acme.tlschallenge=true" | ||
25 | # - "--certificatesresolvers.myresolver.acme.email=<email>" | ||
26 | - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" | ||
27 | # Uncomment for test mode. This allows detailed logging and creation of a fake certificate. | ||
28 | # - "--log.level=DEBUG" | ||
29 | # - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" | ||
30 | ports: | ||
31 | - "443:443" | ||
32 | volumes: | ||
33 | - "traefik:/letsencrypt" | ||
34 | - "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
35 | |||
36 | ocis: | ||
37 | image: owncloud/ocis:4.0.0 | ||
38 | container_name: ocis | ||
39 | restart: unless-stopped | ||
40 | entrypoint: | ||
41 | - /bin/sh | ||
42 | command: ["-c", "ocis init || true; ocis server"] | ||
43 | environment: | ||
44 | - PROXY_TLS=false | ||
45 | - OCIS_INSECURE=false | ||
46 | - OCIS_URL=https://<subdomain> | ||
47 | - OCIS_LOG_LEVEL=info | ||
48 | - SEARCH_EXTRACTOR_TYPE=tika | ||
49 | - SEARCH_EXTRACTOR_TIKA_TIKA_URL=http://tika:9998 | ||
50 | - FRONTEND_FULL_TEXT_SEARCH_ENABLED=true | ||
51 | volumes: | ||
52 | - "ocis-config:/etc/ocis" | ||
53 | - "ocis:/var/lib/ocis" | ||
54 | labels: | ||
55 | - "traefik.enable=true" | ||
56 | - "traefik.http.routers.ocis.rule=Host(`<subdomain>`)" | ||
57 | - "traefik.http.routers.ocis.entrypoints=websecure" | ||
58 | - "traefik.http.routers.ocis.tls.certresolver=myresolver" | ||
59 | - "traefik.http.services.ocis.loadbalancer.server.port=9200" | ||
60 | |||
61 | tika: | ||
![]() |
2.6 | 62 | image: apache/tika:2.9.0.0-full |
![]() |
1.1 | 63 | container_name: tika |
64 | restart: unless-stopped | ||
65 | {{/code}} | ||
66 | |||
![]() |
2.2 | 67 | * Obtain the admin password via {{code language="bash"}}docker logs ocis 2>&1 | grep password{{/code}}. |
![]() |
2.3 | 68 | * Go to {{code language="none"}}https://<subdomain>{{/code}} and login as "admin" using the password you have just received. |
![]() |
1.1 | 69 | * ((( |
![]() |
2.5 | 70 | For example, to test the full-text search feature, simply upload a file called "test.txt" containing "hello". Now search for "hello" in the search bar at the top. The result should be an empty list, as the default search only looks for file names. However, you can enable "Search in content only", which uses full-text search, so "text.txt" should now be found. |
![]() |
1.1 | 71 | ))) |