tg_rss_bot/docker-compose.yml
mitsuha_s a3327a505c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
remove invalid values in docker-compose.yml and add little documentation for environment values
2022-07-26 19:38:38 +00:00

29 lines
838 B
YAML

version: '3.7'
services:
rss-bot:
image: miroslavsckaya/tg_rss_bot
environment:
# DSN schema: postgres://username:password@hostname/database_name
# https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
- "RSSBOT_DSN=${BOT_DSN}"
# https://core.telegram.org/bots#6-botfather
- "RSSBOT_TG_TOKEN=${BOT_TOKEN}"
# https://docs.python.org/3/howto/logging.html#logging-levels
- "LOG_LEVEL=${BOT_LOG_LEVEL:-INFO}"
container_name: rss_bot
depends_on:
- postgres
postgres:
image: postgres:14-alpine
environment:
# Postgres settings
# Can use POSTGRES_DB variable. https://hub.docker.com/_/postgres
- "POSTGRES_PASSWORD=${POSTGRES_PASS}"
volumes:
- postgres_bot_db:/var/lib/postgresql/data
volumes:
postgres_bot_db: