Complete content split: mount p2pfoundation-wiki as read-only volume

- docker-compose: mount CONTENT_REPO_PATH (default ../p2pfoundation-wiki) at /app/content
- Set CONTENT_DIR=/app/content so articles_dir resolves to /app/content/wiki/
- Remove HOST_XMLDUMP_DIR (superseded by CONTENT_DIR)
- Remove tracked pagenames.txt, add to .gitignore
- Deleted ~7.7GB of duplicate local content (articles/, blog_static/, xmldump/)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-16 13:25:03 -04:00
parent 89fcbf0595
commit be5bf2169e
4 changed files with 11 additions and 23712 deletions

View File

@ -1,10 +1,9 @@
# P2P Wiki AI Configuration
# Content paths (for split repo setup)
# Set HOST_XMLDUMP_DIR to point to the content repo's xmldump directory
# HOST_XMLDUMP_DIR=/opt/content/p2pfoundation-wiki/xmldump
# CONTENT_DIR can also be set inside the container to resolve articles_dir and xmldump_dir
# CONTENT_DIR=/app/content
# Content repo path (host path to p2pfoundation-wiki checkout)
# Default: ../p2pfoundation-wiki (sibling directory)
# On Netcup: /opt/content/p2pfoundation-wiki
# CONTENT_REPO_PATH=../p2pfoundation-wiki
# Ollama (Local LLM)
OLLAMA_BASE_URL=http://localhost:11434

4
.gitignore vendored
View File

@ -17,9 +17,11 @@ xmldump-2014.tar.gz
articles/
articles.tar.gz
# Content moved to p2pfoundation-wiki repo
# Content lives in p2pfoundation-wiki repo (mounted via CONTENT_REPO_PATH)
blog_static/
blog_sample/
wikifr_static/
pagenames.txt
# Environment
.env

View File

@ -11,9 +11,11 @@ services:
volumes:
# Persist vector store and review queue
- ./data:/app/data
# XML dumps for parsing (set HOST_XMLDUMP_DIR to content repo path)
- ${HOST_XMLDUMP_DIR:-./xmldump}:/app/xmldump:ro
# Content from canonical p2pfoundation-wiki repo (wiki articles + xmldump)
- ${CONTENT_REPO_PATH:-../p2pfoundation-wiki}:/app/content:ro
environment:
# Content directory (points to mounted p2pfoundation-wiki repo)
- CONTENT_DIR=/app/content
# Ollama connection (adjust host for your setup)
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.2}

File diff suppressed because it is too large Load Diff