telegram-rss-bot icon indicating copy to clipboard operation
telegram-rss-bot copied to clipboard

Dockerfile data?

Open jtagcat opened this issue 4 years ago • 1 comments

Where is the data stored? Also document in readme.

/code/bot.db + config from ENV?

jtagcat avatar Feb 20 '21 12:02 jtagcat

The DB_PATH env variable controls where the database file is stored (for docker). Default being "./bot.db" e.g. current directory from where the binary runs.

Other than that, you can set the environment variables when running docker container with, in this case the DB_PATH, so your command could look like this:

docker pull ruthless/telegram-rss-bot
docker run -e TELEGRAM_AUTH_KEY="MY-TOKEN" -e DB_PATH="./path/to/my/database.db" ruthless/telegram-rss-bot

Then of course you can use volume mounts to make this storage persistent.

Without a docker, you can easily set this path in the config file for the bot.

I agree, the docs could be clearer on this, since right now, except the template file, there is no docs on this.

0x111 avatar Mar 01 '21 18:03 0x111