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:
parent
89fcbf0595
commit
be5bf2169e
|
|
@ -1,10 +1,9 @@
|
||||||
# P2P Wiki AI Configuration
|
# P2P Wiki AI Configuration
|
||||||
|
|
||||||
# Content paths (for split repo setup)
|
# Content repo path (host path to p2pfoundation-wiki checkout)
|
||||||
# Set HOST_XMLDUMP_DIR to point to the content repo's xmldump directory
|
# Default: ../p2pfoundation-wiki (sibling directory)
|
||||||
# HOST_XMLDUMP_DIR=/opt/content/p2pfoundation-wiki/xmldump
|
# On Netcup: /opt/content/p2pfoundation-wiki
|
||||||
# CONTENT_DIR can also be set inside the container to resolve articles_dir and xmldump_dir
|
# CONTENT_REPO_PATH=../p2pfoundation-wiki
|
||||||
# CONTENT_DIR=/app/content
|
|
||||||
|
|
||||||
# Ollama (Local LLM)
|
# Ollama (Local LLM)
|
||||||
OLLAMA_BASE_URL=http://localhost:11434
|
OLLAMA_BASE_URL=http://localhost:11434
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,11 @@ xmldump-2014.tar.gz
|
||||||
articles/
|
articles/
|
||||||
articles.tar.gz
|
articles.tar.gz
|
||||||
|
|
||||||
# Content moved to p2pfoundation-wiki repo
|
# Content lives in p2pfoundation-wiki repo (mounted via CONTENT_REPO_PATH)
|
||||||
blog_static/
|
blog_static/
|
||||||
blog_sample/
|
blog_sample/
|
||||||
|
wikifr_static/
|
||||||
|
pagenames.txt
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
# Persist vector store and review queue
|
# Persist vector store and review queue
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
# XML dumps for parsing (set HOST_XMLDUMP_DIR to content repo path)
|
# Content from canonical p2pfoundation-wiki repo (wiki articles + xmldump)
|
||||||
- ${HOST_XMLDUMP_DIR:-./xmldump}:/app/xmldump:ro
|
- ${CONTENT_REPO_PATH:-../p2pfoundation-wiki}:/app/content:ro
|
||||||
environment:
|
environment:
|
||||||
|
# Content directory (points to mounted p2pfoundation-wiki repo)
|
||||||
|
- CONTENT_DIR=/app/content
|
||||||
# Ollama connection (adjust host for your setup)
|
# Ollama connection (adjust host for your setup)
|
||||||
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
|
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
|
||||||
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.2}
|
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.2}
|
||||||
|
|
|
||||||
23704
pagenames.txt
23704
pagenames.txt
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue