CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 1m59s
- add apiFetch wrapper with re-auth popup, retry and session monitor - proxy go2rtc through the app (/go2rtc) and drop the public stream hostname - route WebSocket upgrades manually (the talk WSS was rejecting go2rtc MSE) - harden talkback: paplay error handling, heartbeat, single speaker, reconnect - sync recording state with the server on load and on 409 - optionally verify Cf-Access-Jwt-Assertion (CF_ACCESS_TEAM_DOMAIN/AUD) - keep go2rtc on the internal network only - remove unused env vars, update README and cam-watch script
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
name: kai-sa-cam
|
|
|
|
services:
|
|
kai-sa-go2rtc:
|
|
image: alexxit/go2rtc:1.9.9
|
|
container_name: kai-sa-go2rtc
|
|
profiles: ["dev", "prod"]
|
|
restart: unless-stopped
|
|
environment:
|
|
- PULSE_SERVER=unix:/run/user/1001/pulse/native
|
|
devices:
|
|
- /dev/video0:/dev/video0
|
|
- /dev/snd:/dev/snd
|
|
volumes:
|
|
- ./config/kai-sa-go2rtc.yaml:/config/go2rtc.yaml:ro
|
|
- /run/user/1001/pulse/native:/run/user/1001/pulse/native
|
|
- /home/esiahdmin/.config/pulse/cookie:/root/.config/pulse/cookie:ro
|
|
networks:
|
|
- kai-sa-cam-internal
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
|
|
kai-sa-cam:
|
|
build:
|
|
context: ./apps/kai-sa-cam
|
|
dockerfile: Dockerfile
|
|
container_name: kai-sa-cam
|
|
profiles: ["dev", "prod"]
|
|
restart: unless-stopped
|
|
user: "1001:1001"
|
|
environment:
|
|
- TZ=${TZ:-Europe/Paris}
|
|
- USER_ID=${USER_ID:-1000}
|
|
- GROUP_ID=${GROUP_ID:-1000}
|
|
- APP_ORIGIN=${APP_ORIGIN:-https://kaisa.esiah.dev}
|
|
- MEDIA_DIR=/media
|
|
- CONFIG_DIR=/config
|
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
- MAX_RECORDING_MINUTES=${MAX_RECORDING_MINUTES:-120}
|
|
- DISK_MIN_FREE_GB=${DISK_MIN_FREE_GB:-2}
|
|
- GO2RTC_URL=http://kai-sa-go2rtc:1984
|
|
- GO2RTC_RTSP_URL=rtsp://kai-sa-go2rtc:8554/webcam
|
|
- PULSE_SERVER=${PULSE_SERVER}
|
|
- XDG_RUNTIME_DIR=/run/user/1001
|
|
- CF_ACCESS_TEAM_DOMAIN=${CF_ACCESS_TEAM_DOMAIN:-}
|
|
- CF_ACCESS_AUD=${CF_ACCESS_AUD:-}
|
|
volumes:
|
|
- ./media:/media
|
|
- ./config:/config
|
|
- /run/user/1001/pulse/native:/run/user/1001/pulse/native
|
|
- /home/esiahdmin/.config/pulse/cookie:/home/1001/.config/pulse/cookie:ro
|
|
networks:
|
|
- kai-sa-cam-internal
|
|
- kai-sa-cam-tunnel
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
- /var/cache
|
|
init: true
|
|
|
|
networks:
|
|
kai-sa-cam-internal:
|
|
internal: true
|
|
kai-sa-cam-tunnel:
|
|
external: true
|
|
name: kai-sa-cam-tunnel
|