IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
24.98k stars 1.35k forks source link

Ability to modify the folder where data is stored #1982

Open JuezFenix opened 2 weeks ago

JuezFenix commented 2 weeks ago

Describe the solution you'd like Right now, by default and without the possibility of modification, all data is saved in /DATA. I would like it to be possible to somehow establish the path in which the data should be stored. Being able to even separate the data referring to configurations and "work" files of the different containers, from the user files.

I don't know the complete structure of casaos, but one option would be to define the variable in the main configuration file and then have it read by the application management module to use it to generate the containers.

Additional context It can be done in a similar way to how they do it in ansible-nas:

Here they define the route for all container data:

https://github.com/davestephens/ansible-nas/blob/2151f6287b6394c1729f55e7e22b86378da7e818/roles/ansible-nas-docker/defaults/main.yml

And here for the user data:

https://github.com/davestephens/ansible-nas/blob/2151f6287b6394c1729f55e7e22b86378da7e818/group_vars/all.yml

CorrectRoadH commented 1 week ago

good idea. It will forward it to our PM @ETWang1991