Docker image #42

Merged
Miroslavsckaya merged 13 commits from feature_docker into master 2022-08-13 16:41:20 +00:00
3 changed files with 11 additions and 6 deletions
Showing only changes of commit 8a82511618 - Show all commits

View file

@ -1 +1,8 @@
RSSBOT_TG_TOKEN=1234567890:yourbotstoken
RSSBOT_TG_TOKEN=1234567890:yourbotstoken
# Optional variables
# RSSBOT_DSN=xxx
# POSTGRES_USER=xxx
# POSTGRES_PASSWORD=xxx
# POSTGRES_DB=xxx
# LOG_LEVEL=xxx

3
.gitignore vendored
View file

@ -5,8 +5,5 @@
/.venv
/__pycache__
# Database
/*.db
# Environment
skobkin marked this conversation as resolved
Review

Missing EOL (\n) on the last line

Missing EOL (`\n`) on the last line
.env

View file

@ -2,6 +2,7 @@ version: '3.7'
services:
app:
build: .
image: miroslavsckaya/tg_rss_bot
environment:
# DSN schema: postgres://username:password@hostname/database_name
@ -24,8 +25,8 @@ services:
- "POSTGRES_PASSWORD=${BOT_DB_PASSWORD:-dev}"
- "POSTGRES_DB=${BOT_DB_NAME:-bot}"
volumes:
- postgres_bot_db:/var/lib/postgresql/data
- db-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
skobkin marked this conversation as resolved
Review

db-data maybe?

`db-data` maybe?
postgres_bot_db:
db-data: