CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 9s
- move sources, Dockerfile and build config (src, public, package.json, vite/tailwind/postcss/tsconfig, index.html) to the repo root - docker-compose: build context is now "." instead of ./apps/kai-sa-cam - add a .dockerignore (node_modules, dist, media, config, .env, ...) so the larger build context does not ship media, secrets or local node_modules into the image - deploy workflow: replace the apps/kai-sa-cam/** paths filter with paths-ignore so pushes keep triggering deployments - remove the Renovate workflow
78 lines
2.1 KiB
YAML
78 lines
2.1 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: .
|
|
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
|
|
- kai-sa-cam-egress
|
|
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
|
|
kai-sa-cam-egress: {}
|