Files
carplay/docker-compose-example.yml
James Magahern 13b1d768dc sequential frames support
- Server now has configurable MAX_WS_BUFFER_BYTES defaulting to 2097152, and skips JPEG frames
    when the WebSocket is backed up instead of queueing stale frames in ws (server/index.js:30,
    server/index.js:1439).
  - Browser frame handling now decodes frames sequentially, drops late frames against the audio
    clock, caps pending/decoded queues, and draws only the latest due frame per animation tick
    (public/app.js:280, public/app.js:381).
  - Relay/split normal EOF closes are no longer mislabeled as client_disconnect, which should
    make logs around ffmpeg decode warnings less misleading (server/index.js:797, server/
    index.js:1071).
  - Documented MAX_WS_BUFFER_BYTES in README, Compose, and AGENTS.
2026-05-04 00:00:34 -07:00

38 lines
1.1 KiB
YAML

services:
frame-stream-player:
build: .
image: frame-stream-player:latest
container_name: frame-stream-player
restart: unless-stopped
ports:
- "3000:3000"
environment:
PORT: "3000"
NODE_ENV: production
# split: smoothest, two upstream connections.
# relay: one upstream connection, separate audio/frame ffmpeg workers.
# single: one upstream connection and one ffmpeg worker; fallback only.
PLAYBACK_CONNECTION_MODE: relay
FFMPEG_LOG_LEVEL: warning
FFMPEG_INPUT_SEEKABLE: "0"
MAX_WS_BUFFER_BYTES: "2097152"
MAX_AUDIO_QUEUE_BYTES: "16777216"
MAX_RELAY_BRANCH_QUEUE_BYTES: "16777216"
RECENT_URLS_PATH: /app/data/recent-urls.json
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- frame-stream-data:/app/data
# CPU decoding is the default and does not need device passthrough.
#
# Optional Intel/AMD VAAPI device passthrough:
# devices:
# - "/dev/dri:/dev/dri"
#
# Optional NVIDIA passthrough with Docker Compose v2:
# gpus: all
volumes:
frame-stream-data: