restart script

This commit is contained in:
igp
2025-11-27 14:09:52 +03:00
parent 12d2d07d1f
commit 8885cdca38
2 changed files with 19 additions and 2 deletions
+6 -2
View File
@@ -18,8 +18,8 @@ mqtt:
enabled: false enabled: false
birdseye: birdseye:
enabled: false enabled: false
auth: #auth:
enabled: false # enabled: false
go2rtc: go2rtc:
streams: streams:
1-1: rtsp://admin:Password~2022@192.168.170.36:554/Streaming/Channels/101 1-1: rtsp://admin:Password~2022@192.168.170.36:554/Streaming/Channels/101
@@ -249,6 +249,7 @@ ffmpeg:
output_args: output_args:
record: preset-record-generic-audio-aac record: preset-record-generic-audio-aac
record: record:
sync_recordings: True
enabled: true enabled: true
retain: retain:
days: 14 days: 14
@@ -748,6 +749,9 @@ cameras:
- detect - detect
motion: motion:
mask: 0.166,0.067,0.237,0.066,0.237,0.028,0.166,0.03 mask: 0.166,0.067,0.237,0.066,0.237,0.028,0.166,0.03
threshold: 40
contour_area: 10
improve_contrast: true
4-2: 4-2:
ffmpeg: ffmpeg:
inputs: inputs:
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Navigate to the directory containing your docker-compose.yml file
# Replace /path/to/your/project with the actual path
#cd /path/to/your/project
echo "Bringing down Docker Compose services..."
docker compose down
echo "Bringing up Docker Compose services..."
docker compose up -d
echo "Docker Compose services restarted."