2026-05-01 21:51:25 -07:00
|
|
|
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
|
2026-05-01 23:21:16 -07:00
|
|
|
# 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
|
2026-05-01 22:41:51 -07:00
|
|
|
FFMPEG_LOG_LEVEL: warning
|
|
|
|
|
FFMPEG_INPUT_SEEKABLE: "0"
|
2026-05-01 22:50:34 -07:00
|
|
|
MAX_AUDIO_QUEUE_BYTES: "16777216"
|
2026-05-01 23:21:16 -07:00
|
|
|
MAX_RELAY_BRANCH_QUEUE_BYTES: "16777216"
|
2026-05-01 22:08:50 -07:00
|
|
|
RECENT_URLS_PATH: /app/data/recent-urls.json
|
2026-05-01 21:51:25 -07:00
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
2026-05-01 22:08:50 -07:00
|
|
|
volumes:
|
|
|
|
|
- frame-stream-data:/app/data
|
2026-05-01 21:51:25 -07:00
|
|
|
|
|
|
|
|
# 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
|
2026-05-01 22:08:50 -07:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
frame-stream-data:
|