Purpose
The development (dev) environment is designed for:- Local development and testing
- Debugging with verbose logging
- Rapid iteration without data persistence concerns
- Integration testing with development databases
- Full access to management endpoints
Dev configurations prioritize developer experience and debugging capabilities over security and performance.
Common Dev-Specific Configurations
Enhanced Debugging
All dev profiles enable extensive logging and debugging features:Flyway Migration Settings
Dev environments allow Flyway baseline migration for existing databases:Relaxed CORS and Security
Dev configurations allow local development tools:Database Settings for Dev
Auth Service Database
DEV_AUTH_DB_HOST(default:host.docker.internal)DEV_AUTH_DB_PORT(default:5432)DEV_AUTH_DB_NAMEDEV_AUTH_DB_USERNAMEDEV_AUTH_DB_PASSWORD
User Service Database
The user service includes
classpath:db/seed location to load test data in dev environment.Client Service Database
Vehicle Service Database
Purchase Sale Service Database
Service URLs in Dev Environment
Dev environment uses the Angular client URL for OAuth redirects and CORS:Gateway-Specific Dev Settings
The gateway service includes enhanced debugging for OAuth flows:These log levels provide detailed traceability for OAuth token flows, session management, and security filter chains.
How to Add a New Dev Configuration
Configure environment variables
Set the required environment variables in your development environment:
Dev Environment Variables Summary
Auth Service
Auth Service
DEV_AUTH_DB_HOST(default:host.docker.internal)DEV_AUTH_DB_PORT(default:5432)DEV_AUTH_DB_NAMEDEV_AUTH_DB_USERNAMEDEV_AUTH_DB_PASSWORDDEV_ANGULAR_APP_URL
User Service
User Service
DEV_USER_DB_HOST(default:host.docker.internal)DEV_USER_DB_PORT(default:5432)DEV_USER_DB_NAMEDEV_USER_DB_USERNAMEDEV_USER_DB_PASSWORD
Client Service
Client Service
DEV_CLIENT_DB_HOST(default:host.docker.internal)DEV_CLIENT_DB_PORT(default:5432)DEV_CLIENT_DB_NAMEDEV_CLIENT_DB_USERNAMEDEV_CLIENT_DB_PASSWORD
Vehicle Service
Vehicle Service
DEV_VEHICLE_DB_HOST(default:host.docker.internal)DEV_VEHICLE_DB_PORT(default:5432)DEV_VEHICLE_DB_NAMEDEV_VEHICLE_DB_USERNAMEDEV_VEHICLE_DB_PASSWORD
Purchase Sale Service
Purchase Sale Service
DEV_PURCHASE_SALE_DB_HOST(default:host.docker.internal)DEV_PURCHASE_SALE_DB_PORT(default:5432)DEV_PURCHASE_SALE_DB_NAMEDEV_PURCHASE_SALE_DB_USERNAMEDEV_PURCHASE_SALE_DB_PASSWORD
Gateway Service
Gateway Service
DEV_ANGULAR_APP_URL
Best Practices for Dev
Use Docker Networking
Use
host.docker.internal for database hosts when running services in Docker but database on host machine.Separate Dev Databases
Use separate database instances for each service to simulate production architecture.
Enable All Endpoints
Expose all actuator endpoints for debugging but remember to restrict in production.
Test Migrations
Regularly test Flyway migrations by cleaning and rebuilding databases.
Troubleshooting Dev Environment
Database Connection Issues
Viewing Full Configuration
Common Issues
Flyway baseline errors
Flyway baseline errors
If you see baseline errors, ensure
baseline-on-migrate: true is set in the dev profile.SQL syntax errors in logs
SQL syntax errors in logs
This is expected with
show-sql: true. Only investigate if queries are failing.Session timeout issues
Session timeout issues
Dev sessions timeout after 2 hours. Restart authentication flow if needed.
See Also
Overview
Profile mechanism and configuration merging
Prod Environment
Production environment configurations
Variables Reference
Complete list of environment variables