2026-01-24 22:01:51 +00:00
|
|
|
app:
|
|
|
|
|
id: nostr-rs-relay
|
|
|
|
|
name: Nostr Relay (Rust)
|
|
|
|
|
version: 0.8.0
|
|
|
|
|
description: High-performance Nostr relay written in Rust. Host your own decentralized social media relay and earn networking profits.
|
|
|
|
|
|
|
|
|
|
container:
|
2026-03-04 05:23:42 +00:00
|
|
|
image: scsibug/nostr-rs-relay:0.8.9
|
2026-01-24 22:01:51 +00:00
|
|
|
image_signature: cosign://...
|
|
|
|
|
pull_policy: verify-signature
|
2026-05-05 11:29:18 -04:00
|
|
|
data_uid: "1000:1000"
|
2026-01-24 22:01:51 +00:00
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
|
- storage: 10Gi # For event storage
|
|
|
|
|
|
|
|
|
|
resources:
|
|
|
|
|
cpu_limit: 2
|
|
|
|
|
memory_limit: 1Gi
|
|
|
|
|
disk_limit: 10Gi
|
|
|
|
|
|
|
|
|
|
security:
|
|
|
|
|
capabilities: []
|
|
|
|
|
readonly_root: true
|
2026-03-11 18:13:28 +00:00
|
|
|
no_new_privileges: true
|
|
|
|
|
user: 1000
|
|
|
|
|
seccomp_profile: default
|
2026-01-24 22:01:51 +00:00
|
|
|
network_policy: isolated
|
|
|
|
|
apparmor_profile: nostr-relay
|
|
|
|
|
|
|
|
|
|
ports:
|
2026-06-11 00:24:20 -04:00
|
|
|
- host: 18081
|
2026-01-24 23:18:24 +00:00
|
|
|
container: 8080
|
|
|
|
|
protocol: tcp # HTTP/WebSocket
|
2026-01-24 22:01:51 +00:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- type: bind
|
|
|
|
|
source: /var/lib/archipelago/nostr-relay
|
2026-05-05 11:29:18 -04:00
|
|
|
target: /usr/src/app/db
|
2026-01-24 22:01:51 +00:00
|
|
|
options: [rw]
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
- RELAY_NAME=Archipelago Nostr Relay
|
|
|
|
|
- RELAY_DESCRIPTION=Self-hosted Nostr relay on Archipelago
|
|
|
|
|
- MAX_EVENTS=1000000
|
|
|
|
|
- MAX_SUBSCRIPTIONS=100
|
|
|
|
|
|
|
|
|
|
health_check:
|
|
|
|
|
type: http
|
2026-05-13 15:09:22 -04:00
|
|
|
endpoint: http://localhost:8080
|
|
|
|
|
path: /
|
2026-01-24 22:01:51 +00:00
|
|
|
interval: 30s
|
2026-06-11 00:24:20 -04:00
|
|
|
timeout: 30s
|
|
|
|
|
retries: 5
|
2026-01-24 22:01:51 +00:00
|
|
|
|
|
|
|
|
nostr_integration:
|
|
|
|
|
relay_type: public
|
|
|
|
|
monetization_enabled: true # Earn networking profits
|
|
|
|
|
event_storage: sqlite
|