Nostr Relay in Elixir with Mnesia.
-
Clone source code from git.
$ git clone https://github.com/kphrx/noxir
-
Build application.
$ mix deps.get --only prod Resolving Hex dependencies... $ MIX_ENV=prod mix compile Generated noxir app
-
Starting server on
http://localhost:4000
.$ MIX_ENV=prod mix run --no-halt [info] Running Noxir.Router with Bandit 1.1.2 at 0.0.0.0:4000 (http)
-
Overwrite environment and docker image tag, and scale config to
compose.override.yml
.version: '3' services: app: environment: RELAY_NAME: "<relay info name>" RELAY_DESC: "<relay info description>" OWNER_PUBKEY: "<hex format public key>" OWNER_CONTACT: "<contact infomation uri. for example: mailto uri>" deploy: replicas: 3
-
Start container.
$ docker compose up -d [+] Running 3/3 ✔ Container noxir-app-1 Started ✔ Container noxir-app-2 Started ✔ Container noxir-app-3 Started
edge
: this tag created frommaster
branch.latest
: this tag created from latest release version.
$ docker run -it --rm ghcr.io/kphrx/noxir:edge