How to bind the public folder in docker? #314
-
Hi Lissy I'm new to docker and wondered if you could help me to change the favicons and a few more things... After i have installed dashy i can not see anything in my dashy folder, i.e a conf.yml file? here is a snippet of my docker setup file: `- name: Create dashy directories
where am i going wrong, i just want to bind the whole public folder so i can edit any files etc... Any help would be much apricated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
So it's expecting a file for the config, but when you create a volume, it is a directory. In my setup I do something like this (although there may be a better method) volumes:
- /path/to/my-config.yml:/app/public/conf.yml @EVOTk Is much better with Docker than me, so he may have some thoughts? I think if Dashy were to accept a directory where all assets (config file, image icons, stylesheets, etc) could be passed into, that would be much better. Am considering changing this, but it would be a breaking change, so I would need to think through the best way to implement this. |
Beta Was this translation helpful? Give feedback.
-
Hello, Docker will not automatically create a file, you have to do it manually. In /opt/dashy create an empty conf.yml file ( for exemple with
How did you create the Docker container? |
Beta Was this translation helpful? Give feedback.
So it's expecting a file for the config, but when you create a volume, it is a directory.
In my setup I do something like this (although there may be a better method)
@EVOTk Is much better with Docker than me, so he may have some thoughts?
I think if Dashy were to accept a directory where all assets (config file, image icons, stylesheets, etc) could be passed into, that would be much better. Am considering changing this, but it would be a breaking change, so I would need to think through the best way to implement this.