diff options
| author | Adam Soltys <[email protected]> | 2026-10-18 08:14:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-18 08:14:20 -0700 |
| commit | 29688869753d7bc9f1d25db27b9fccc8f11266e1 (patch) | |
| tree | 75f88c2ed0a5974bd6cdddcacf5f199d8ae125d2 /compose.yml | |
| parent | c9e79b282ee6347cf0891f174e42040197630711 (diff) | |
| download | coinosv3-server-29688869753d7bc9f1d25db27b9fccc8f11266e1.tar.gz coinosv3-server-29688869753d7bc9f1d25db27b9fccc8f11266e1.zip | |
live: live streams sent from the app — the browser's recording over a WebSocket (on 443, through Cloudflare: no ports to open), ffmpeg to 2 s HLS (H.264 720p, AAC), a live window and the whole stream (its recording), viewers counted, a dropped sender resuming the same stream, NIP-98 + coinos-name owners only, 3 at once, 4 h each, recordings kept a week.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'compose.yml')
| -rw-r--r-- | compose.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/compose.yml b/compose.yml index df0d2d1..d48ab2f 100644 --- a/compose.yml +++ b/compose.yml @@ -5,6 +5,7 @@ # $STATE/names/config.json $STATE/names/data/ (names.db) # $STATE/nwcpush/config.json $STATE/nwcpush/data/ # $STATE/blossom/data/ +# $STATE/live/data/ (streams and their recordings) services: names: image: oven/bun:1.3.14 @@ -57,6 +58,26 @@ services: networks: [net] restart: unless-stopped + # live streams sent from the app (live/server.js). ffmpeg comes with the + # vmedia image (vmedia/Dockerfile: `docker build -t vmedia vmedia/` on the host). + live: + image: vmedia + container_name: live + working_dir: /app + command: bun live/server.js + environment: + LIVE_DATA: /data + LIVE_PORT: "8795" + LIVE_BASE: https://v3.coinos.io/live + NAMES_URL: http://names:8798 + volumes: + - .:/app:ro + - ${STATE}/live/data:/data + cpus: 4 + mem_limit: 2g + networks: [net] + restart: unless-stopped + networks: net: external: true |
