Nostr relay server in a Docker container.
356
In this image, you need to define one persistent volumes:
This store strfry.conf and the post database.
If you need to customize or filter KIND/IP/RATE edit /app/strfry.conf
If you need to limit writes to specifics PUBKEYS decomment in /app/strfry.conf this line
#plugin = "/app/write-policy.py"
and insert the PUBKEYS in whitelist section in /app/write-plugin.py
Below an example of the docker-compose:
services:
strfry:
image: ziomc/strfry:latest
volumes:
- data:/app
ports:
- 7777:7777/tcp
restart: always
volumes:
data:
The url will be ws://localhost:7777
If you want encrypt the data transfer with SSL, you can use products like Caddy/Nginx/Traefik/HAProxy to automatically get a valid certificate.
In this case, the url will be wss://nostr-relay.mydomain.com
Feel free to message me on Nostr if you need a hand
This is my npub: npub1msd70ld6pj9ph7gxtn0wghy534t5u7q0wjy5y50fe9w3vsex2kustzmeds
If you're using a persistent volume, you'll need to update the permissions for the '/app' directory; typically, this is done via: chown -Rf 1000:1000 /app
Content type
Image
Digest
sha256:2b811735e…
Size
69.7 MB
Last updated
25 days ago
docker pull ziomc/strfry