From f395ea5f63c7786912a65a191241e3039d13bc38 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Sat, 2 Sep 2023 10:52:38 -0400 Subject: [PATCH 1/2] add a note about backups --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3a82e7f..1c40e50 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,10 @@ The application requires nothing special, just a `docker compose up`. - Rather complete example docker-compose file with Traefik+WOPI/CODE+search https://github.com/owncloud/ocis/blob/master/deployments/examples/ocis_traefik/docker-compose.yml +## Backups + +The service is running on retastokado, a 6TB ZFS mirrored pair at Scott's home. +It has limited upload speed. Sanoid is configured, via NixOS config, to keep 48 +hourly, 14 daily, 3 monthly, and 1 yearly snapshot of the config (`/etc/ocis`) +and data (`/var/lib/ocis`) volumes. Adding another zpool at another location and +configuring Syncoid would provide a sound backup strategy. From ac4dd7266be9df3190666358f6ba842cec7d4290 Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Sat, 16 Sep 2023 09:06:35 -0400 Subject: [PATCH 2/2] Add Tika full-text search --- docker-compose.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cd428b7..af50da0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,10 @@ services: PROXY_HTTP_ADDR: 0.0.0.0:9200 PROXY_TLS: false OCIS_URL: https://${PUBLIC_URL} + # fulltext search + SEARCH_EXTRACTOR_TYPE: search + SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://search:9998 + FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true" networks: [ web ] labels: traefik.http.routers.ocis.rule: Host(`${PUBLIC_URL}`) @@ -23,6 +27,13 @@ services: traefik.http.routers.ocis.tls.certresolver: letsencrypt traefik.enable: true + search: + image: apache/tika:latest-full + networks: [ internal ] + restart: always + networks: web: external: true + internal: + internal: true