This repo is used to maintain a docker image of bitvora/haven.
-
Create copies of the example files in this repo
cp relays_blastr.example.json relays_blastr.json cp relays_import.example.json relays_import.json cp .env.example .env
-
Change the values in
.env
-
Start the relay with docker compose
docker compose up -d docker logs -f haven # follow container logs
Haven versions 1.0.3 and earlier did not replace outdated notes. While this does not impact the relay's core functionality, it can lead to a bloated database, reduced performance, and bugs in certain clients. For this reason, it is recommended to delete old databases and start fresh, optionally re-importing previous notes.
-
Stop the container
docker compose down
-
Start the container with
docker compose run
docker compose run haven --import
-
Wait for the import process to complete
2025/01/22 04:40:35 📦 importing notes 2025/01/22 04:40:40 📦 imported 22 owner notes ... 2025/01/22 04:41:01 ✅ owner note import complete! 2025/01/22 04:41:01 📦 importing inbox notes, please wait 2 minutes 2025/01/22 04:41:01 📦 imported 2797 tagged notes 2025/01/22 04:41:01 ✅ tagged import complete. please restart the relay
-
Exit, stop and start the container
# Ctrl + C to exit the container docker compose down docker compose up -d --remove-orphans