DewGew / DZGA-Flask

Domoticz Google Assisting using Flask
GNU General Public License v3.0
8 stars 4 forks source link

Saving Configuration with Docker #34

Closed Xenomes closed 7 months ago

Xenomes commented 7 months ago

Hi,

First, congratulations on the update to the new dzga-flask!

I am using dzga-flask in a Docker container. When running, the following files are created on my host in the config directory: admin_devices.json and smarthome.log. However, I am missing the file where all configurations are stored, so updating the Docker will erase the settings.

Greetings, Xenomes.

DewGew commented 7 months ago

Settings i saved in a sqlite file in instance folder. Maybe its better to save this file in config folder? Or creata a volume for instance folder? If you update docker the instance folder will be deleted?

Xenomes commented 7 months ago

I will test the volume for the 'instance' folder.

Xenomes commented 7 months ago

The 'instance' option is functioning properly. You can update the docker-compose.yaml and Dockerfile to include the 'instance'.