Slightly over-engineered personal knowledge base. Uses code and tricks from Luca Palmieri's excellent book Zero to Production in Rust.
Prerequisites: docker
, docker-compose-plugin
.
Clone the repo, create and run the containers.
git clone https://github.com/kldtz/rhizome.git
cd rhizome
docker context use <context-name>
# Public server
docker compose up -d
# Local deployment
docker compose -f docker-compose-local.yml up
Use docker to copy the dump file. Going via stdout can corrupt the file.
# Backup db
./scripts/backup_db.sh
# Get container hash
DB=$(docker compose ps -q db)
# Restore db
docker cp backup/knowledge_dump.tar $DB:/
docker exec -i $DB pg_restore -U postgres -c -d knowledge /knowledge_dump.tar
- Clean up config and deal with secrets
- Graph view
- HTMX for more interactivity