aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yml
diff options
context:
space:
mode:
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