tg_rss_bot/docker-compose.yml

32 lines
1,004 B
YAML
Raw Normal View History

2022-07-26 18:07:34 +00:00
version: '3.7'
services:
app:
image: miroslavsckaya/tg_rss_bot
2022-07-26 18:07:34 +00:00
environment:
# DSN schema: postgres://username:password@hostname/database_name
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
- "RSSBOT_DSN=postgres://${BOT_DB_USER:-bot}:${BOT_DB_PASSWORD:-dev}@${BOT_DB_HOST:-db}/${BOT_DB_NAME:-bot}"
# https://core.telegram.org/bots#6-botfather
- "RSSBOT_TG_TOKEN=${RSSBOT_TG_TOKEN}"
# https://docs.python.org/3/howto/logging.html#logging-levels
- "LOG_LEVEL=${LOG_LEVEL:-INFO}"
2022-07-26 18:07:34 +00:00
depends_on:
- postgres
restart: unless-stopped
2022-07-26 18:07:34 +00:00
db:
2022-07-26 18:07:34 +00:00
image: postgres:14-alpine
environment:
# Postgres settings
# https://hub.docker.com/_/postgres
- "POSTGRES_USER=${BOT_DB_USER:-bot}"
- "POSTGRES_PASSWORD=${BOT_DB_PASSWORD:-dev}"
- "POSTGRES_DB=${BOT_DB_NAME:-bot}"
2022-07-26 18:07:34 +00:00
volumes:
- postgres_bot_db:/var/lib/postgresql/data
restart: unless-stopped
2022-07-26 18:07:34 +00:00
volumes:
postgres_bot_db: