1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# WebFind — single-container deployment.
#
# WebFind is fully self-contained: it embeds Turso/libSQL (SQLite) for the link
# graph + vector + BM25 storage. No SurrealDB, no separate database container,
# no schema-init step — the database schema is created automatically on first run.
#
# Host port mappings:
# 5748 -> 4747 : API / MCP over HTTP (Streamable HTTP)
# 5750 -> 4749 : HTML GUI (Google-style search)
#
# Access the GUI from your host at: http://localhost:5750
# Access the API from your host at: http://localhost:5748
services:
webfind:
build: .
image: webfind:latest
container_name: webfind-server
ports:
- "5748:4747"
- "5750:4749"
environment:
# Data dir holds the Turso DB file, Tantivy index, and cache.
WEBFIND_DATA_DIR: /data
# Embedded Turso graph store (single-file SQLite). "memory" is the in-memory fallback.
WEBFIND_GRAPH_STORE: turso
# Path to the Turso database file inside the data dir.
WEBFIND_TURSO_PATH: /data/webfind.db
# Optional: SQLCipher encryption-at-rest via config file (turso.encryption_key).
# Optional OAuth 2.1 + PKCE (default off — single-tenant).
# WEBFIND_AUTH_MODE: off
# Hardening (see README §Environment Variables).
WEBFIND_RATE_LIMIT: "60"
WEBFIND_MCP_ALLOWED_HOSTS: localhost
volumes:
- webfind-data:/data
command:
restart: unless-stopped
volumes:
webfind-data: