aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yml
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-25 16:00:12 -0700
committerAdam Soltys <[email protected]>2026-10-25 16:00:12 -0700
commit5f3985bfd2b7b96eea30a3253a755ab409276f00 (patch)
tree64adba99338cd92927c09d24f2ae6834e21b3d03 /compose.yml
parent8ea5ae33f14ade28a0809a6dc267b44570c8e74f (diff)
downloadcoinosv3-server-5f3985bfd2b7b96eea30a3253a755ab409276f00.tar.gz
coinosv3-server-5f3985bfd2b7b96eea30a3253a755ab409276f00.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'compose.yml')
-rw-r--r--compose.yml18
1 files changed, 18 insertions, 0 deletions
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