Compare commits

...

2 Commits

Author SHA1 Message Date
3d672924e2 rename keys env 2025-03-30 16:25:06 +03:00
756f11e755 update readme.md 2025-03-30 16:24:52 +03:00
2 changed files with 7 additions and 3 deletions

View File

@ -51,8 +51,12 @@ DEBUG=True
# Telegram # Telegram
API_TOKEN=Ваш_токен API_TOKEN=Ваш_токен
# Database Postgres # Redis
REDIS_URL=redis://redis_telegram_bot:6379
# Postgres
DATABASE_URL_LOCAL_MIGRATE=postgresql+asyncpg://admin:admin@localhost:5432/postgresdb DATABASE_URL_LOCAL_MIGRATE=postgresql+asyncpg://admin:admin@localhost:5432/postgresdb
POSTGRES_URL=postgresql+asyncpg://admin:admin@postgres_telegram_bot:5432/postgresdb
POSTGRES_USER=admin POSTGRES_USER=admin
POSTGRES_PASSWORD=admin POSTGRES_PASSWORD=admin
POSTGRES_PORT=5432 POSTGRES_PORT=5432

View File

@ -23,8 +23,8 @@ def get_logger(filename: str = "/volumes/logs/main.log", level: str = "INFO") ->
class Secrets: class Secrets:
bot_token: str = os.getenv("BOT_TOKEN") bot_token: str = os.getenv("BOT_TOKEN")
redis_url: str = "redis://redis_telegram_bot:6379" redis_url: str = os.getenv("REDIS_URL")
postgres_url: str = "postgresql+asyncpg://admin:admin@postgres_telegram_bot:5432/postgresdb" postgres_url: str = os.getenv("POSTGRES_URL")
SECRETS = Secrets() SECRETS = Secrets()