add optional variables in .env.dist; remove *.db from .gitignore; add build command in docker-compose.yml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
mitsuha_s 2022-07-27 18:20:58 +03:00
parent 90ac75fc11
commit 8a82511618
3 changed files with 11 additions and 6 deletions

View file

@ -1 +1,8 @@
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
.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:
postgres_bot_db:
db-data: