Hi,
No success to install Frigate with docker-compose. I always got this error :
"services.frigate.environment must be a mapping"
Any idea please ?
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/docker-appdata/frigate/frigate.yml' --env-file '/docker-appdata/frigate/frigate.env' --env-file '/docker-appdata/global.env' config 2>&1': validating /docker-appdata/frigate/frigate.yml: services.frigate.environment must be a mapping
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/docker-appdata/frigate/frigate.yml' --env-file '/docker-appdata/frigate/frigate.env' --env-file '/docker-appdata/global.env' config 2>&1': validating /docker-appdata/frigate/frigate.yml: services.frigate.environment must be a mapping in /usr/share/openmediavault/engined/rpc/compose.inc:693
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): OMVRpcServiceCompose->{closure}('/tmp/bgstatusDi...', '/tmp/bgoutputKX...')
#1 /usr/share/openmediavault/engined/rpc/compose.inc(696): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceCompose->doCommand(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('doCommand', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Compose', 'doCommand', Array, Array, 1)
#6 {main}
My compose file:
---
# https://github.com/blakeblackshear/frigate
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb" # update for your cameras based on calculation above
# devices:
# - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
# - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
# - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /docker-appdata/frigate/config/config.yml:/config/config.yml
- /media/frigate:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
- FRIGATE_MQTT_USER: "xxxxxxxxxx"
- FRIGATE_MQTT_PASSWORD: "xxxxxxxxxxx"
- FRIGATE_RTSP_USER: "xxxxxxxxxxxxxxx"
# - FRIGATE_RTSP_PASSWORD: "password"
Alles anzeigen