fix: add pydantic[email] + correct DATABASE_URL to postgresql+asyncpg
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user