Compare commits
5 Commits
be4458032d
...
de0359d681
Author | SHA1 | Date |
---|---|---|
Alexey Skobkin | de0359d681 | |
Alexey Skobkin | 41e52003e0 | |
mitsuha_s | 8d4b0f22c4 | |
mitsuha_s | cf828287cb | |
Miroslavsckaya | 3d40035f6b |
|
@ -14,4 +14,4 @@ README.md
|
|||
|
||||
# Environment
|
||||
.env
|
||||
.env.dist
|
||||
.env.dist
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
/__pycache__
|
||||
|
||||
# Environment
|
||||
.env
|
||||
.env
|
||||
|
|
|
@ -8,6 +8,11 @@ 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,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 New Issue