Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile data? #11

Open
jtagcat opened this issue Feb 20, 2021 · 1 comment
Open

Dockerfile data? #11

jtagcat opened this issue Feb 20, 2021 · 1 comment
Assignees

Comments

@jtagcat
Copy link

jtagcat commented Feb 20, 2021

Where is the data stored? Also document in readme.

/code/bot.db + config from ENV?

@0x111 0x111 self-assigned this Mar 1, 2021
@0x111
Copy link
Owner

0x111 commented Mar 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants