Skip to content

Commit

Permalink
add fulltextsearch to nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Dec 30, 2024
1 parent a5ddf72 commit 44b5c97
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
5 changes: 5 additions & 0 deletions nextcloud/docker-compose.logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ services:
options:
max-size: "1m"
max-file: "1"
fulltextsearch:
logging:
options:
max-size: "1m"
max-file: "1"
imaginary:
logging:
options:
Expand Down
3 changes: 2 additions & 1 deletion nextcloud/docker-compose.pre_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ set -Eumo pipefail
SELF_DIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
DATA_DIR="$SELF_DIR/data"

mkdir -p "$DATA_DIR/mariadb/var/lib/mysql" \
mkdir -p "$DATA_DIR/fulltextsearch/usr/share/elasticsearch/data" \
"$DATA_DIR/mariadb/var/lib/mysql" \
"$DATA_DIR/redis/data" \
"$DATA_DIR/nextcloud/crontabs" \
"$DATA_DIR/nextcloud/data" \
Expand Down
38 changes: 37 additions & 1 deletion nextcloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,38 @@ services:
interval: 5s
start_period: 10s

fulltextsearch:
hostname: fulltextsearch
image: nextcloud/aio-fulltextsearch:20241216_102930
restart: unless-stopped

security_opt:
# NOTE: Do NOT add a [space] before `true` below.
- no-new-privileges:true
user: ${USER_ID:?}

networks:
- default
volumes:
- ./data/fulltextsearch/usr/share/elasticsearch/data:/usr/share/elasticsearch/data:rw

environment:
ES_JAVA_OPTS: "-Xms512M -Xmx512M"
bootstrap.memory_lock: true
cluster.name: nextcloud-aio
discovery.type: single-node
logger.org.elasticsearch.discovery: WARN
http.port: 9200
xpack.license.self_generated.type: basic
xpack.security.enabled: false
TZ: ${TZ:?}

healthcheck:
test: "curl -f http://localhost:9200 || exit 1"
interval: 10s
timeout: 3s
start_period: 30s

imaginary:
hostname: imaginary
image: nextcloud/aio-imaginary:20241216_102930
Expand All @@ -80,7 +112,7 @@ services:
- no-new-privileges:true
user: ${USER_ID:?}

command: -cpus 3 -concurrency 16 -enable-url-source
command: -cpus 4 -concurrency 16 -enable-url-source

networks:
- default
Expand Down Expand Up @@ -110,6 +142,10 @@ services:
condition: service_healthy
redis:
condition: service_healthy
fulltextsearch:
condition: service_healthy
imaginary:
condition: service_healthy

networks:
- default
Expand Down

0 comments on commit 44b5c97

Please sign in to comment.