fix: update database URL to use 0.0.0.0 and adjust Alembic migration configurations

This commit is contained in:
Artem Kashaev
2025-11-27 12:36:49 +05:00
parent ad6283680b
commit 6d9387d1b4
4 changed files with 75 additions and 34 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class Settings(BaseSettings):
version: str = "0.1.0"
api_v1_prefix: str = "/api/v1"
database_url: str = Field(
default="postgresql+asyncpg://postgres:postgres@localhost:5432/test_task_crm",
default="postgresql+asyncpg://postgres:postgres@0.0.0.0:5432/test_task_crm",
description="SQLAlchemy async connection string",
)
sqlalchemy_echo: bool = False