aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.29k stars 773 forks source link

Docker Container Lost Settings after Restart or container #565

Open wes1993 opened 5 months ago

wes1993 commented 5 months ago

Describe the bug When I stop the docker container and start again all settings gone...

To Reproduce Steps to reproduce the behavior: Run the docker container, configure the connections, stop and start again the container

Expected behavior A clear and concise description of what you expected to happen. Keep the settings

Screenshots If applicable, add screenshots and gifs to help explain your problem. Not applicable System information: In which OS are you running? GIve all details of where you have deployed the application. Make sure to give detailed version information. Docker using the image provided in the wiki

Additional context Add any other context about the problem here.

salitaba commented 5 months ago

I have this issue too, I think we should add disk config to docker container. But I don't want add whole /app directory to disk

wes1993 commented 5 months ago

I have fixed adding /app to my local FS (Insede there are config and logs files only)

salitaba commented 5 months ago

If you are in development your solotion is ok but It's wrong to set whole /app directory sync to your disk in production I find better solotion. I read the code and findout if you set MONGO_CON_STR env variable then your data is persistant in Mongo DB.

andromedarabbit commented 3 months ago

I guess 'CONFIG_ENV_VAR_NAME' is not respected at all