Local Setup¶
Run TruSpace on your own machine and access it at http://localhost:3000.
Installation¶
On the first run, ./start.sh detects that no .env file exists and launches the configuration wizard. Select profile 1) local-dev and confirm the defaults with ENTER. TruSpace will then start automatically.
Once running, open http://localhost:3000 in your browser.
Re-run the wizard at any time
bash
./start.sh --configure-env
Options¶
| Flag | Effect |
|---|---|
--no-ai |
Disable Ollama / Open WebUI to save RAM |
--dev |
Build images locally instead of pulling |
--local-frontend |
Run the Next.js frontend outside Docker (enables hot reload) |
Development with hot reload¶
If you are actively working on the frontend or backend, you can run those outside Docker while keeping the infrastructure (IPFS, database) containerised:
Managing Containers¶
# View running containers
docker ps
# Follow logs
docker compose logs -f
# Stop (keeps data)
docker compose down
# Stop and delete all data ⚠️
docker compose down -v
Data & Backups¶
All persistent data is stored in ./volumes/ inside the project folder.
# Back up
docker compose down
tar czf truspace-backup-$(date +%Y%m%d).tar.gz ./volumes .env
docker compose up -d
# Restore
docker compose down
rm -rf ./volumes
tar xzf truspace-backup-<date>.tar.gz
docker compose up -d
Troubleshooting¶
Port already in use
Volume permission errors
Database error after an update
# ⚠️ Deletes all accounts and workspace metadata; IPFS documents are unaffected
rm ./volumes/db/truspace.db
docker compose restart backend