Help with frigate!

Hey guys! Can you please help with a Frigate install.
I’m trying to install a standalone frigate install on Debian 12, in docker.

I have tried so many methods, Docker, Docker compose and all result with the same issue,

The container comes up, but as soon as I browse to the web UI, the container just restarts and doesnt come back up.

Here are the logs

root@debian2:/home/frigate# docker compose up
[+] Running 2/2
 ✔ Network frigate_default  Created                                        0.1s
 ✔ Container frigate        Created                                        0.0s
Attaching to frigate
frigate  | s6-rc: info: service s6rc-fdholder: starting
frigate  | s6-rc: info: service s6rc-oneshot-runner: starting
frigate  | s6-rc: info: service s6rc-oneshot-runner successfully started
frigate  | s6-rc: info: service fix-attrs: starting
frigate  | s6-rc: info: service s6rc-fdholder successfully started
frigate  | s6-rc: info: service fix-attrs successfully started
frigate  | s6-rc: info: service legacy-cont-init: starting
frigate  | s6-rc: info: service legacy-cont-init successfully started
frigate  | s6-rc: info: service log-prepare: starting
frigate  | s6-rc: info: service log-prepare successfully started
frigate  | s6-rc: info: service nginx-log: starting
frigate  | s6-rc: info: service go2rtc-log: starting
frigate  | s6-rc: info: service frigate-log: starting
frigate  | s6-rc: info: service nginx-log successfully started
frigate  | s6-rc: info: service go2rtc-log successfully started
frigate  | s6-rc: info: service go2rtc: starting
frigate  | s6-rc: info: service frigate-log successfully started
frigate  | s6-rc: info: service go2rtc successfully started
frigate  | s6-rc: info: service go2rtc-healthcheck: starting
frigate  | s6-rc: info: service frigate: starting
frigate  | s6-rc: info: service go2rtc-healthcheck successfully started
frigate  | s6-rc: info: service frigate successfully started
frigate  | s6-rc: info: service nginx: starting
frigate  | 2023-11-25 03:27:57.754108491  [INFO] Preparing go2rtc config...
frigate  | s6-rc: info: service nginx successfully started
frigate  | s6-rc: info: service legacy-services: starting
frigate  | 2023-11-25 03:27:57.757563742  [INFO] Starting Frigate...
frigate  | 2023-11-25 03:27:57.760960651  [INFO] Starting NGINX...
frigate  | s6-rc: info: service legacy-services successfully started
frigate  | Traceback (most recent call last):
frigate  |   File "/usr/local/go2rtc/create_config.py", line 23, in <module>
frigate  |     with open(config_file) as f:
frigate  | IsADirectoryError: [Errno 21] Is a directory: '/config/config.yml'
frigate  | 2023-11-25 03:27:57.990867705  [INFO] The go2rtc service exited with                                      code 1 (by signal 0)
frigate  | 2023-11-25 03:27:58.706603868  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.706607669  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.706609591  ***    Your config file is not valid!                                                          ***
frigate  | 2023-11-25 03:27:58.706611362  ***    Please check the docs at                                                                ***
frigate  | 2023-11-25 03:27:58.706612728  ***    https://docs.frigate.video/conf                                     iguration/index     ***
frigate  | 2023-11-25 03:27:58.706614383  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.706615588  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.706628544  ***    Config Validation Errors                                                                ***
frigate  | 2023-11-25 03:27:58.706629903  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.706904240  [Errno 21] Is a directory: '/config/co                                     nfig.yml'
frigate  | 2023-11-25 03:27:58.707703485  Traceback (most recent call last):
frigate  | 2023-11-25 03:27:58.707705618    File "/opt/frigate/frigate/app.py",                                      line 351, in start
frigate  | 2023-11-25 03:27:58.707706873      self.init_config()
frigate  | 2023-11-25 03:27:58.707708125    File "/opt/frigate/frigate/app.py",                                      line 80, in init_config
frigate  | 2023-11-25 03:27:58.707709324      user_config = FrigateConfig.parse_                                     file(config_file)
frigate  | 2023-11-25 03:27:58.707710523    File "/opt/frigate/frigate/config.py                                     ", line 1070, in parse_file
frigate  | 2023-11-25 03:27:58.707711542      with open(config_file) as f:
frigate  | 2023-11-25 03:27:58.707712683  IsADirectoryError: [Errno 21] Is a dir                                     ectory: '/config/config.yml'
frigate  | 2023-11-25 03:27:58.707713590
frigate  | 2023-11-25 03:27:58.707714745  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.707715838  ***    End Config Validation Errors                                                            ***
frigate  | 2023-11-25 03:27:58.707717948  **************************************                                     ***********************
frigate  | 2023-11-25 03:27:58.707918697  [2023-11-25 03:27:58] frigate.app                                                         INFO    : Starting Frigate (0.12.1-367d724)
frigate  | 2023-11-25 03:27:59.003093117  [INFO] Preparing go2rtc config...
frigate  | Traceback (most recent call last):
frigate  |   File "/usr/local/go2rtc/create_config.py", line 23, in <module>
frigate  |     with open(config_file) as f:
frigate  | IsADirectoryError: [Errno 21] Is a directory: '/config/config.yml'
frigate  | 2023-11-25 03:27:59.184836783  [INFO] The go2rtc service exited with                                      code 1 (by signal 0)
frigate  | 2023-11-25 03:27:59.831225908  [INFO] Service Frigate exited with cod                                     e 1 (by signal 0)
frigate  | s6-rc: info: service legacy-services: stopping
frigate  | s6-rc: info: service legacy-services successfully stopped
frigate  | s6-rc: info: service nginx: stopping
frigate  | s6-rc: info: service go2rtc-healthcheck: stopping
frigate  | 2023-11-25 03:27:59.841714710  [INFO] The go2rtc-healthcheck service                                      exited with code 256 (by signal 15)
frigate  | s6-rc: info: service go2rtc-healthcheck successfully stopped
frigate  | 2023-11-25 03:27:59.965157887  [INFO] Service NGINX exited with code                                      0 (by signal 0)
frigate  | s6-rc: info: service nginx successfully stopped
frigate  | s6-rc: info: service nginx-log: stopping
frigate  | s6-rc: info: service frigate: stopping
frigate  | s6-rc: info: service frigate successfully stopped
frigate  | s6-rc: info: service go2rtc: stopping
frigate  | s6-rc: info: service frigate-log: stopping
frigate  | s6-rc: info: service nginx-log successfully stopped
frigate  | s6-rc: info: service go2rtc successfully stopped
frigate  | s6-rc: info: service go2rtc-log: stopping
frigate  | s6-rc: info: service frigate-log successfully stopped
frigate  | s6-rc: info: service go2rtc-log successfully stopped
frigate  | s6-rc: info: service log-prepare: stopping
frigate  | s6-rc: info: service s6rc-fdholder: stopping
frigate  | s6-rc: info: service log-prepare successfully stopped
frigate  | s6-rc: info: service legacy-cont-init: stopping
frigate  | s6-rc: info: service s6rc-fdholder successfully stopped
frigate  | s6-rc: info: service legacy-cont-init successfully stopped
frigate  | s6-rc: info: service fix-attrs: stopping
frigate  | s6-rc: info: service fix-attrs successfully stopped
frigate  | s6-rc: info: service s6rc-oneshot-runner: stopping
frigate  | s6-rc: info: service s6rc-oneshot-runner successfully stopped
frigate exited with code 0

and my docker file.

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>
#      - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /path/to/your/config.yml:/config/config.yml
      - /path/to/your/storage:/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_RTSP_PASSWORD: "password"

I think I obviously need to change the /path/to/your/* to a valid path but not sure what.

The errors in your logs are related to the volumes so correct the /path/to/your/* first then make sure you have a valid frigate configuration file and check again.