Compare commits
13 Commits
de0359d681
...
be4458032d
Author | SHA1 | Date |
---|---|---|
Alexey Skobkin | be4458032d | |
Alexey Skobkin | c52ab29263 | |
mitsuha_s | 41b7eb32b6 | |
mitsuha_s | 8a82511618 | |
mitsuha_s | 90ac75fc11 | |
mitsuha_s | 7e466a9384 | |
mitsuha_s | a3327a505c | |
mitsuha_s | dcc7dda040 | |
mitsuha_s | 505e5f1ad5 | |
mitsuha_s | 6381661232 | |
mitsuha_s | 2b4684275e | |
mitsuha_s | dcba2e3b80 | |
mitsuha_s | b8c91b351a |
|
@ -8,11 +8,6 @@ RUN pip install -r requirements.txt
|
|||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# App settings
|
||||
ENV RSSBOT_DSN=xxx
|
||||
ENV RSSBOT_TG_TOKEN=xxx
|
||||
ENV LOG_LEVEL=INFO
|
||||
|
||||
# App settings
|
||||
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
||||
ENV RSSBOT_DSN=postgres://username:password@hostname/database_name
|
||||
|
|
32
README.md
32
README.md
|
@ -45,41 +45,27 @@ export RSSBOT_DSN=xxx
|
|||
python update.py
|
||||
```
|
||||
|
||||
## Running prebuild Docker Image
|
||||
|
||||
### Running the bot
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx miroslavskaya/tg_rss_bot bot.py
|
||||
```
|
||||
|
||||
### 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
|
||||
## Runnig the bot with Docker
|
||||
|
||||
```shell
|
||||
docker build . -t tg_rss_bot
|
||||
docker build . -t tg_bot
|
||||
docker run tg_bot
|
||||
```
|
||||
|
||||
### Running the bot
|
||||
## Runnig the update with Docker
|
||||
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx tg_rss_bot bot.py
|
||||
docker run tg_bot update.py
|
||||
```
|
||||
|
||||
### Running update
|
||||
```shell
|
||||
docker run -e RSSBOT_DSN=yyy RSSBOT_TG_TOKEN=xxx tg_rss_bot update.py
|
||||
```
|
||||
## Running the bot with docker-compose
|
||||
|
||||
## Using Docker Compose
|
||||
|
||||
### Running the bot
|
||||
```shell
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
### Running the update
|
||||
## Running the update with docker-compose
|
||||
|
||||
```shell
|
||||
docker-compose run app update.py
|
||||
```
|
Loading…
Reference in New Issue