docwell-server keeps a Bleve index of page titles and text in DOCWELL_DATA_DIR. Instead of hooking every write, an indexer polls PocketBase for pages whose "updated" moved (titles, saved content, trash and restore all touch it) and sweeps out purged pages every ten minutes. The index can be thrown away at any time: it rebuilds from the database, and superadmins can trigger a rebuild. Searches are limited to the spaces the caller can open, match the last word as a prefix and forgive one wrong letter. Snippets come back as plain text with match offsets, so clients never render server HTML. In the web app, Ctrl+K or the sidebar's search box opens a palette that shows recent pages until something is typed. The server containers get a /data volume for the index. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
# Docwell all-in-one container.
|
|
# docker compose up --build
|
|
# Open http://localhost:3000 (admin panel: http://localhost:3000/admin/)
|
|
|
|
name: docwell-aio
|
|
|
|
services:
|
|
docwell:
|
|
build:
|
|
context: ..
|
|
dockerfile: Docker-AIO/Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
PB_ADMIN_EMAIL: ${PB_ADMIN_EMAIL:-admin@docwell.test}
|
|
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD:?set PB_ADMIN_PASSWORD}
|
|
# Links in auth emails point here.
|
|
DOCWELL_WEB_URL: ${DOCWELL_WEB_URL:-http://localhost:3000}
|
|
DOCWELL_SIGNUP_ENABLED: ${DOCWELL_SIGNUP_ENABLED:-true}
|
|
DOCWELL_SIGNUP_DOMAINS: ${DOCWELL_SIGNUP_DOMAINS:-}
|
|
DOCWELL_SMTP_HOST: ${DOCWELL_SMTP_HOST:-}
|
|
DOCWELL_SMTP_PORT: ${DOCWELL_SMTP_PORT:-587}
|
|
DOCWELL_SMTP_USERNAME: ${DOCWELL_SMTP_USERNAME:-}
|
|
DOCWELL_SMTP_PASSWORD: ${DOCWELL_SMTP_PASSWORD:-}
|
|
DOCWELL_SMTP_TLS: ${DOCWELL_SMTP_TLS:-false}
|
|
DOCWELL_MAIL_FROM: ${DOCWELL_MAIL_FROM:-no-reply@docwell.localhost}
|
|
volumes:
|
|
- pb_data:/pb_data
|
|
- server_data:/data
|
|
ports:
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
pb_data:
|
|
server_data:
|