fix: add pydantic[email] + correct DATABASE_URL to postgresql+asyncpg

This commit is contained in:
Implementation Engineer
2026-07-10 09:59:14 +02:00
parent 22acc39017
commit 7b1bebe7da
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ RENTMAN_API_TOKEN=
JWT_SECRET=
# --- Database ---
DATABASE_URL=postgresql://hms:hms@postgres:5432/hms
DATABASE_URL=postgresql+asyncpg://hms:hms@postgres:5432/hms
# --- Redis ---
REDIS_URL=redis://redis:6379/0
+1 -1
View File
@@ -4,7 +4,7 @@ sqlalchemy[asyncio]>=2.0.30
asyncpg>=0.29.0
aiosqlite>=0.20.0
redis>=5.0.0
pydantic>=2.7.0
pydantic[email]>=2.7.0
pydantic-settings>=2.3.0
python-jose[cryptography]>=3.3.0
passlib[bcrypt]>=1.7.4
+1 -1
View File
@@ -28,7 +28,7 @@ services:
redis:
condition: service_healthy
environment:
- DATABASE_URL=${DATABASE_URL:-postgresql://hms:hms@postgres:5432/hms}
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://hms:hms@postgres:5432/hms}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- RENTMAN_API_TOKEN=${RENTMAN_API_TOKEN}
- JWT_SECRET=${JWT_SECRET}