How to have docker persistent storage for tgcf #393
-
Hello, Later edit: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
@cosinguyen thanks for the answer @WladyX you can mount any local directory to the docker container's In this way, you can persist the config JSON and also the log files. For people running tgcf in some ephemeral filesystem, they can connect tgcf to a mongo db database to persist the config. The feature is already implemented when I am writing this answer, I will update the wiki with a new page about that. |
Beta Was this translation helpful? Give feedback.
-
Hi,
So it only mounts the tgcf.config.json file outside, everything else is still inside docker. Note that if you do this, the file tgcf.config.json needs to exist before docker initialization, otherwise docker will misunderstand it as a folder and create it then tgcf will load a folder instead a file |
Beta Was this translation helpful? Give feedback.
Hi,
Check out my docker-compose to be able to manage config files
#395 (comment)