add optional variables in .env.dist; remove *.db from .gitignore; add build command in docker-compose.yml
This commit is contained in:
parent
90ac75fc11
commit
8a82511618
|
@ -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
3
.gitignore
vendored
|
@ -5,8 +5,5 @@
|
|||
/.venv
|
||||
/__pycache__
|
||||
|
||||
# Database
|
||||
/*.db
|
||||
|
||||
# Environment
|
||||
.env
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue