diff --git a/.env.example b/.env.example index d6093a3..225220a 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/backend/requirements.txt b/backend/requirements.txt index 7283440..75490a5 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index ba7065a..c068c8b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}