Meets Relay
Self-hostable encrypted relay service for Meets pairing and synchronization. The service stores pairing metadata and encrypted transfer chunks; application data is encrypted by the clients before it reaches this server.
Docker Compose
Requirements: Docker Compose, a public HTTPS URL configured by the operator's reverse proxy, and a separately operated TURN server for networks where direct WebRTC connectivity is unavailable. The reverse proxy, DNS, TLS certificate, firewall and TURN service are intentionally outside this project.
Copy .env.example to .env, set your TURN hostname and port, and create a unique shared secret that matches your TURN service (for example, openssl rand -hex 32). Keep .env private; it is ignored by Git.
services:
meets-relay:
image: git.maddin.app/maddin/meets-relay:latest
restart: unless-stopped
env_file: [.env]
read_only: true
security_opt:
- no-new-privileges:true
cap_drop: [ALL]
pids_limit: 64
mem_limit: 512m
ports:
- "127.0.0.1:8080:8080"
environment:
PORT: "8080"
RELAY_DATA_DIR: /data/relay
RELAY_MAX_BYTES: "10737418240"
RELAY_PAIRING_MAX_BYTES: "1073741824"
RELAY_TTL_SECONDS: "604800"
RELAY_INCOMPLETE_TTL_SECONDS: "86400"
volumes:
- relay_data:/data/relay
tmpfs:
- /tmp:rw,noexec,nosuid,size=16m
volumes:
relay_data:
Set a reverse-proxy route from your own HTTPS hostname to 127.0.0.1:8080. Configure that HTTPS base URL in the Meets Mac app before generating a new pairing QR code. Existing pairings retain their relay address.
The default quotas above cap stored data at 10 GiB total and 1 GiB per pairing. Choose values appropriate for your host. Completed transfers expire after seven days; incomplete transfers expire after one day. Pairings expire after 30 days without a heartbeat. Keep the named volume in backups if you need to retain pairings across host replacement.
Security and privacy
- HTTPS must be terminated by the operator's reverse proxy. Keep the container port bound to loopback unless the host firewall and TLS termination are configured deliberately.
- Transfer chunks are end-to-end encrypted by the clients. The relay cannot decrypt recording content.
- The relay does not provide push notifications and does not accept or store APNs device tokens.
- The relay does not run a TURN server. WebRTC signaling remains available for connection setup; configure
TURN_HOST,TURN_PORTandTURN_SHARED_SECRETfor a separately operated TURN service. The relay itself does not route or decrypt WebRTC media. Direct or STUN-only connections may work without TURN depending on the network. - The image runs as an unprivileged user, with a read-only root filesystem, no Linux capabilities and only
/data/relaywritable. - Do not expose the health or API endpoints through a proxy that adds caching. Configure
Cache-Control: no-storefor API traffic. - This service has no administrator account or remote shell. Restrict Docker access on the host; Docker administration is equivalent to host root.
Operations
Health check: GET /health. Logs contain operational errors only. The relay does not log request bodies, authorization headers, pairing secrets or recording contents.
Build locally with docker compose build; run with docker compose up -d. To update, pull the selected image tag and recreate the service. Pin a version tag or image digest for reproducible deployments.
License
MIT. See LICENSE.