change running and update documentation in README.md
This commit is contained in:
parent
b9b12f21d4
commit
8c6c256971
30
README.md
30
README.md
|
@ -45,27 +45,41 @@ export RSSBOT_DSN=xxx
|
|||
python update.py
|
||||
```
|
||||
|
||||
## Runnig the bot with Docker
|
||||
## Running prebuild Docker Image
|
||||
|
||||
### Running the bot
|
||||
```shell
|
||||
docker build . -t tg_bot
|
||||
docker run tg_bot
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx miroslavskaya/tg_rss_bot bot.py
|
||||
```
|
||||
|
||||
## Runnig the update with Docker
|
||||
### Running update
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx miroslavskaya/tg_rss_bot update.py
|
||||
```
|
||||
## Building and running Docker image from source
|
||||
|
||||
```shell
|
||||
docker run tg_bot update.py
|
||||
docker build . -t tg_rss_bot
|
||||
```
|
||||
|
||||
## Running the bot with docker-compose
|
||||
### Running the bot
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx tg_rss_bot bot.py
|
||||
```
|
||||
|
||||
### Running update
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx tg_rss_bot update.py
|
||||
```
|
||||
|
||||
## Using Docker Compose
|
||||
|
||||
### Running the bot
|
||||
```shell
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
## Running the update with docker-compose
|
||||
|
||||
### Running the update
|
||||
```shell
|
||||
docker-compose run app update.py
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue