mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
These five images defaulted to "latest". A host that never pulls stays on whatever "latest" was at first start, a fresh install gets an untested version, and one repository state does not describe one set of images. Pin each to the version "latest" points to today. Euro Office publishes no version tags, so it is pinned by digest. The tag variables can still be set to "latest".
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
---
|
|
x-removed-variables:
|
|
TIKA_IMAGE: "${TIKA_IMAGE:+${TIKA_IMAGE_REMOVED:?TIKA_IMAGE (image:tag) is now TIKA_DOCKER_IMAGE and TIKA_DOCKER_TAG}}"
|
|
services:
|
|
tika:
|
|
image: ${TIKA_DOCKER_IMAGE:-apache/tika}:${TIKA_DOCKER_TAG:-4.2.0}${TIKA_DOCKER_VARIANT:+-}${TIKA_DOCKER_VARIANT:-}
|
|
# Using the base variant for smaller image size and faster startup
|
|
# The base variant includes core functionality for text extraction
|
|
# Full variant is only needed for specialized OCR/image processing
|
|
# release notes: https://tika.apache.org
|
|
networks:
|
|
opencloud-net:
|
|
restart: always
|
|
logging:
|
|
driver: ${LOG_DRIVER:-local}
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"bash",
|
|
"-c",
|
|
"exec 3<>/dev/tcp/127.0.0.1/9998 && printf 'GET /tika HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n' >&3 && grep '200 OK' <&3",
|
|
]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 5s
|
|
|
|
opencloud:
|
|
environment:
|
|
# fulltext search
|
|
SEARCH_EXTRACTOR_TYPE: tika
|
|
SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998
|
|
FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true"
|
|
depends_on:
|
|
tika:
|
|
condition: service_healthy
|