Struggling to separate database from media #3462
-
|
I think I am following the docs and example for specifying the database on a local path, and the media on a NAS. (https://docs.frigate.video/configuration/advanced/ and https://docs.frigate.video/installation/). But I can't get the database to any other location on the host. I have not yet mapped /media/frigate to a NAS; I am just trying to map the database to a host path that is separate from /media/frigate. When I finally got them separated, the database exists only inside the container. I think I want it outside so it isn't lost if I get a new image. I am running Home assistant and Frigate in Docker on an Ubuntu host (which is an old Mac Mini) the Frigate service from my docker-compose: My /opt/frigate/config/config.yml has: I created an empty directory at /opt/frigate/db What Happens:
BUT, the database is inside the container (at /db). The database does not exist on the host, outside the container. I don't know Docker very well, but doesn't the image have to allow a folder or file to be mapped? I didn't see "/db" in the list of volumes when I did a 'docker inspect'. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I would start by adding |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the suggestion. I added the ":rw", then deleted the /db folder from inside the container. Then start Frigate container. Log shows continuous restarts, with the line: |
Beta Was this translation helpful? Give feedback.
-
|
I'm not sure of what I did wrong, but my problem has disappeared. The instructions in the docs are fine. I resolved the problem by deleting the frigate container and the image, creating the empty '/opt/frigate/db' directory on the host, then running docker-compose up. Now the database and media are in separate folders and both are on the host. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
I'm not sure of what I did wrong, but my problem has disappeared. The instructions in the docs are fine.
I resolved the problem by deleting the frigate container and the image, creating the empty '/opt/frigate/db' directory on the host, then running docker-compose up.
Now the database and media are in separate folders and both are on the host.
Thanks for your help.