From 5f3985bfd2b7b96eea30a3253a755ab409276f00 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 25 Oct 2026 16:00:12 -0700 Subject: messages: messages.coinos.io, a Magnitude Relay for the app's private messages, inbox lists, calls and group chats; copies down from relay.coinos.io over NIP-77 (the strfry tunnel), never writes into it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4 --- compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'compose.yml') diff --git a/compose.yml b/compose.yml index 123a02b..7626977 100644 --- a/compose.yml +++ b/compose.yml @@ -6,6 +6,7 @@ # $STATE/nwcpush/config.json $STATE/nwcpush/data/ # $STATE/blossom/data/ # $STATE/live/config.json $STATE/live/data/ (TURN key; streams and their recordings) +# $STATE/messages/bin/magnitude-relay $STATE/messages/data/ (see messages/README.md) services: names: image: ghcr.io/coinos/bun:1.4.3 @@ -80,6 +81,23 @@ services: networks: [net] restart: unless-stopped + # messages.coinos.io: Magnitude Relay (Rust) for private messages and group + # chats. Its binary is built on the host (messages/README.md), not in the + # hook; host networking so it can sync from the strfry tunnel on 127.0.0.1. + messages: + image: debian:bookworm-slim + container_name: messages + command: /usr/local/bin/magnitude-relay --config /etc/magnitude-relay/relay.toml + volumes: + - ${STATE}/messages/bin/magnitude-relay:/usr/local/bin/magnitude-relay:ro + - ./messages/relay.toml:/etc/magnitude-relay/relay.toml:ro + - ${STATE}/messages/data:/data + network_mode: host + cpus: 2 + mem_limit: 2g + stop_grace_period: 20s + restart: unless-stopped + networks: net: external: true -- cgit v1.2.3