Skip to content

when use file provider i got this error "Key: 'Config.Providers.File.Filename' Error:Field validation for 'Filename' failed on the 'file' tag" #1101

Answered by skwde
Nebulosa-Cat asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe a bit late, but maybe it helps others coming here.
I had the same issue.

You have to mount the file into the container.

Here is what I did:

The images to watch are defined in watch-list.yml which is in the same directory as the diun config diun.yml.

In diun.yml

providers:
  file:
    filename: ./watch-list.yml

In my docker-compose.diun.yml I have

    volumes:
      - "./diun.yml:/diun.yml:ro"
      - "./watch-list.yml:/watch-list.yml:ro"
      - "./data:/data"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants