add running the bot and runnig update with Docker documentation to README.md; add .env.dist to .dockerignore; set default value to LOG_LEVEL in .env.dist
This commit is contained in:
parent
8a82511618
commit
41b7eb32b6
|
@ -13,4 +13,5 @@ pylama.ini
|
||||||
README.md
|
README.md
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
|
.env.dist
|
|
@ -5,4 +5,4 @@ RSSBOT_TG_TOKEN=1234567890:yourbotstoken
|
||||||
# POSTGRES_USER=xxx
|
# POSTGRES_USER=xxx
|
||||||
# POSTGRES_PASSWORD=xxx
|
# POSTGRES_PASSWORD=xxx
|
||||||
# POSTGRES_DB=xxx
|
# POSTGRES_DB=xxx
|
||||||
# LOG_LEVEL=xxx
|
# LOG_LEVEL=INFO
|
25
README.md
25
README.md
|
@ -43,4 +43,29 @@ python bot.py
|
||||||
export RSSBOT_TG_TOKEN=xxx
|
export RSSBOT_TG_TOKEN=xxx
|
||||||
export RSSBOT_DSN=xxx
|
export RSSBOT_DSN=xxx
|
||||||
python update.py
|
python update.py
|
||||||
|
```
|
||||||
|
|
||||||
|
## Runnig the bot with Docker
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker build . -t tg_bot
|
||||||
|
docker run tg_bot
|
||||||
|
```
|
||||||
|
|
||||||
|
## Runnig the update with Docker
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker run tg_bot update.py
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running the bot with docker-compose
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running the update with docker-compose
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker-compose run app update.py
|
||||||
```
|
```
|
Loading…
Reference in a new issue