melvincarvalho on Nostr: # To run a relay in 3 lines ## Prerequsites Install docker ## Install nostr-rs-relay ...
# To run a relay in 3 lines
## Prerequsites
Install docker
## Install nostr-rs-relay
sudo docker pull scsibug/nostr-rs-relay
## Run relay
mkdir data
sudo docker run -it -p 4100:8080 --mount src=$(pwd)/data,target=/usr/src/app/db,type=bind scsibug/nostr-rs-relay:latest
## Result
Relay will be running on port 4100 and events will be in ./data
## Testing
echo '["REQ","sub",{}]' | websocat -n ws://localhost:4100
Requires websocat, and some events
Published at
2023-01-16 22:02:15Event JSON
{
"id": "0ffed29c8b8cfae6b54d3382d518ddff1e4c30686a8283a4e58539b0ffd93389",
"pubkey": "de7ecd1e2976a6adb2ffa5f4db81a7d812c8bb6698aa00dcf1e76adb55efd645",
"created_at": 1673906535,
"kind": 1,
"tags": [],
"content": "# To run a relay in 3 lines\n\n## Prerequsites\n\nInstall docker\n\n## Install nostr-rs-relay\n\nsudo docker pull scsibug/nostr-rs-relay\n\n## Run relay\n\nmkdir data\n\nsudo docker run -it -p 4100:8080 --mount src=$(pwd)/data,target=/usr/src/app/db,type=bind scsibug/nostr-rs-relay:latest\n\n## Result\n\nRelay will be running on port 4100 and events will be in ./data\n\n## Testing\n\necho '[\"REQ\",\"sub\",{}]' | websocat -n ws://localhost:4100\n\nRequires websocat, and some events",
"sig": "0e16131dfd5b16a2be2c7591749fa5ac10198715c9a522e45448346ecb718a0e6ee6a16d25c75b8a7081ff06db86ff29be7164afd6a772eb2a99a78a343a7a5e"
}