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 - kai-sa-cam-tunnel 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_PUBLIC_URL=https://stream.esiah.dev - GO2RTC_RTSP_URL=rtsp://kai-sa-go2rtc:8554/webcam - PULSE_SERVER=${PULSE_SERVER} - XDG_RUNTIME_DIR=/run/user/1001 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