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