dashy
dashy copied to clipboard
[QUESTION] Docker mapping all of /app/public question
Question
I am using docker to map an nfs/smb volume in for my configuration. The issue with this is you can smb map a folder but not a file. I would like to see if there would be an issue with mapping the whole /app/public folder in. I know there are a decent number of files in there that might have issues with restarts or rebuilts?
Category
Configuration
Please tick the boxes
- [X] You are using a supported version of Dashy (check the first two digits of the version number)
- [X] You've checked that this question hasn't already been raised
- [X] You've checked the docs and troubleshooting guide
- [X] You agree to the code of conduct
Welcome to Dashy 👋 It's great to have you here, but unfortunately your ticket has been closed to prevent spam. Before reopening this issue, please ensure the following criteria are met.
Issues are sometimes closed when users:
- Have only recently joined GitHub
- Have not yet stared this repository
- Have not previously interacted with the repo
Before you reopen this issue, please also ensure that:
- You have checked that a similar issue does not already exist
- You have checked the documentation for an existing solution
- You have completed the relevant sections in the Issue template
Once you have verified the above standards are met, you may reopen this issue. Sorry for any inconvenience caused, I'm just a bot, and sometimes make mistakes 🤖
Yeah, this has been something that's been discussed on and off over the past few months. From my end, I'd like to make a change where all user configured stuff is in a single directory. The issue with that, is that it would be a breaking change, for everyone with auto-update enabled, so would need to be planned properly.
In the short-term, if you must map a directory, then you can map the /public folder, but you will need to paste Dashy's current /public files into your new folder, the first time you set it up. Otherwise the app won't work.
What about creating a config folder in side the public app and then adding an if statement looking for the config files and if it falls fall back to the current location?
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days.
Just an update, I am addressing this in a big update to the conig that I'm working on at the moment.
It's part of some much bigger changes, so it may take a week or two to complete.
When it's merged, you'll just be able to map /user-data, and that directory can include all your custom assets (config files, and optional assets like icons, stylesheets, widgets, fonts, images, etc etc)
Sounds great. I have dashy on kubernetes and the same problem occurs if you want a custom config file from the beginning. I'm countering it with an init container but would be great to have a specific folder for users configuration.
Thank you!
@rizlas see https://github.com/Lissy93/dashy/discussions/799 :)
Hi @Lissy93, just running into this same issue myself and was wondering if there's any update on the /user-data mapping?
I have a swarm cluster with nfs volumes for persistance and have the same problem with the config file.