#settings.json removed when container rebuilt

8 messages · Page 1 of 1 (latest)

ancient bolt
#

Good morning all!
When any event that rebuilds my docker container occurs, my settings.json is removed and my config is lost. Even the back up copy is removed from the same directory. Is there a way to prevent that?

Thanks!!

young laurel
#

There should be a mount for files so they are not stored on the container itself. What are you using for running docker? Docker-compose or a gui app?

ancient bolt
#

Thanks for your reply. I used docker compose. This is on container station within a qnap nas.

young laurel
#

is there a section on volumemounts?

#

volumes: - /path/to/appdata/config:/config

ancient bolt
#

There is. So what I should be doing is creating and mounting a new volume and editing the path to config to reference the new volume? Should the new volume be attached to the container or outside of it all together?

young laurel
#

I use portainer but for compose the " /path/to/appdata/config" should be a real place on the host system