Haven - Docker Hub Description
HAVEN (High Availability Vault for Events on Nostr) is the most sovereign personal relay for the Nostr protocol, for storing and backing up sensitive notes like eCash, private chats, and drafts. It is a relay that is not so dumb, with features like web of trust, inbox relay, cloud backups, blastr, and the ability to import old notes.
See the Haven repository for more information.
The Dockerfile is available here: Dockerfile
- the scripts are compatible with Linux
- Docker: Ensure you have Docker installed on your system. You can download it from here.
- Docker Compose: Ensure you have Docker Compose installed on your system. You can download it
from here.
- we need the Docker Compose Plugin, so
docker compose
should be available in your terminal
- we need the Docker Compose Plugin, so
Start by cloning the repository to access the necessary files:
git clone https://github.com/HolgerHatGarKeineNode/haven-docker
cd haven-docker
If you want a specific version, checkout the tag for that version. You can find the available tags here: Tags
git checkout tags/<tag_name>
The master branch is the latest version.
You'll need to create an .env
file based on the example provided in the repository.
cp .env.example .env
You'll also need to copy the template files to the templates
directory:
cp -r templates-example/* templates/
Open the .env
file and set the necessary environment variables.
Copy the example relay JSON files for your seed and blastr relays:
cp relays_import.example.json relays_import.json
cp relays_blastr.example.json relays_blastr.json
The JSON should contain an array of relay URLs, which default to wss://
if you don't explicitly specify the protocol.
Ensure the necessary directories for volumes exist and have the correct permissions. These directories are used to persist data and templates, which are important for the relay's operation:
./db
is mapped to/app/db
inside the container../templates
is mapped to/app/templates
inside the container.
You may need to create these directories:
mkdir -p ./db ./templates
To start the services using Docker Compose, run the following command:
./scripts/start-relay.sh
This script will start all the services defined in your docker-compose.yml
.
To start the services with Tor enabled, use the following command:
./scripts/start-relay-tor.sh
This script will start the services as per the configuration in your docker-compose.tor.yml
, including the Tor
service.
To stop the services, run the following command:
./scripts/stop.sh
To access the logs of the services, run the following command:
./scripts/logs.sh
Hier ist die aktualisierte README-Sektion, die den Abruf neuer Release-Tags berücksichtigt:
To update the relay, first fetch the latest tags to ensure you have access to any new releases:
git fetch --tags
Then, to switch to a specific version, checkout the tag for that version:
git checkout tags/<tag_name>
If you want to use the latest version on the master branch, execute:
git checkout master
Then, restart the relay:
./scripts/start-relay.sh
# or
./scripts/start-relay-tor.sh
If you need to update the environment variables or relay JSON files, you can do so by editing the .env
file or the
relays_import.json
and relays_blastr.json
files. After making the changes, restart the relay:
./scripts/start-relay.sh
# or
./scripts/start-relay-tor.sh