feat: add PostgreSQL schema and Docker infrastructure

This commit is contained in:
sinveria
2026-11-04 17:33:11 +03:00
parent e29a0a2bea
commit 77875db0d0
10 changed files with 553 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
app_name: str = "Messenger API"
app_env: str = "lab"
database_url: str = (
"postgresql+psycopg://messenger:messenger@localhost:5432/messenger"
)
session_ttl_seconds: int = 3600
cache_url: str = "redis://localhost:6379/0"
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="ignore",
)
settings = Settings()