docs: add docker commands to readme

This commit is contained in:
Ricardo Arturo Cabral Mejia
2022-02-01 13:13:18 +00:00
parent 8976717a25
commit 3bb1ffaab4

25
README
View File

@@ -1,4 +1,23 @@
nostr-relay-registry
--------------------
# nostr-relay-registry
a dynamic registry of nostr relays that tests for very basic tasks in real-time.
A dynamic registry of nostr relays that tests for very basic tasks in real-time.
## Docker
Build the docker image:
```bash
docker build -t nostr-relay-registry .
```
Run the container interactively:
```bash
docker run --rm -it --name=nostr-relay-registry -p 8080:80 nostr-relay-registry
```
Run container in the background:
```bash
docker run -d --restart unless-stopped --name nostr-relay-registry -p 8080:80 nostr-relay-registry
```