Files
Kai-Sa-Cam/docker-compose.yml
T
Esiah 73394dfbbc
CD — Kai-Sa-Cam Deployment / deploy (push) Canceled after 0s
feat: restructure to kai-sa-cam layout with apps/ structure
2026-10-25 01:06:31 +02:00

72 lines
1.9 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:
- GO2RTC_USERNAME=${GO2RTC_USERNAME:-kai-sa-cam}
- GO2RTC_PASSWORD=${GO2RTC_PASSWORD:-}
devices:
- /dev/video0:/dev/video0
- /dev/snd:/dev/snd
volumes:
- ./config/kai-sa-go2rtc.yaml:/config/go2rtc.yaml: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
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-cam@kai-sa-go2rtc:8554/webcam
- GO2RTC_USERNAME=${GO2RTC_USERNAME:-kai-sa-cam}
- GO2RTC_PASSWORD=${GO2RTC_PASSWORD:-}
- PULSE_SERVER=unix:/run/user/1001/pulse/native
- XDG_RUNTIME_DIR=/run/user/1001
volumes:
- ./media:/media
- ./config:/config
- /run/user/1001/pulse/native:/run/user/1001/pulse/native
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