Docker build and GCE deployment for the BCR relay
docker build -t bcr-relay .
A side note for running compose. When testing this it seems that the relay
starts faster than Postgres allows incoming connections which will shut down
the relay instantly (despite the depends on declaration). This can be fixed by
starting Postgres first with -d
flag and then starting the relay with
docker compose up
.
# just run it
docker compose up
# build or rebuild it
docker compose build --no-cache
For deployment, use the Build and deploy bcr Nostr relay
GitHub action, which will deploy the current release
branch of the bcr-relay.