Dev (#51)
* update * cleanup * fixing linting and tests errors * Refactor API Parameter Handling and Update Email Transport ✅ Updated API Route Parameters: - Changed parameter type from `{ id: string }` to `Promise<{ id: string }>` in PUT and DELETE methods for better async handling. ✅ Fixed Email Transport Creation: - Updated `nodemailer.createTransporter` to `nodemailer.createTransport` for correct transport configuration. ✅ Refactored AnalyticsDashboard Component: - Changed export from default to named export for better modularity. ✅ Enhanced Email Responder Toast: - Updated toast structure to include additional properties for better user feedback. 🎯 Overall Improvements: - Improved async handling in API routes. - Ensured correct usage of nodemailer. - Enhanced component exports and user notifications. * 🔧 Update Redis Configuration in Docker Compose ✅ Changed Redis URL: - Updated the Redis connection string in docker-compose.prod.yml to use the new shared Redis service. ✅ Removed Redis Dependency Check: - Eliminated the health check dependency for the Redis service as it is no longer required. 🎯 Improvements: - Streamlined Redis configuration for production deployment.
This commit is contained in:
@@ -10,7 +10,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- DATABASE_URL=postgresql://portfolio_user:portfolio_pass@postgres:5432/portfolio_db?schema=public
|
- DATABASE_URL=postgresql://portfolio_user:portfolio_pass@postgres:5432/portfolio_db?schema=public
|
||||||
- REDIS_URL=redis://:portfolio_redis_pass@redis:6379
|
- REDIS_URL=redis://redis-redis-shared-1:6379
|
||||||
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
|
- NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
|
||||||
- MY_EMAIL=${MY_EMAIL}
|
- MY_EMAIL=${MY_EMAIL}
|
||||||
- MY_INFO_EMAIL=${MY_INFO_EMAIL}
|
- MY_INFO_EMAIL=${MY_INFO_EMAIL}
|
||||||
@@ -24,8 +24,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
|
||||||
condition: service_healthy
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -79,4 +77,3 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
portfolio_net:
|
portfolio_net:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user