-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Auto-configure the Postgres application_name when using Docker Compose #40772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the suggestion. I can see how this is useful in production when, presumably, you're configuring the application name on the JDBC URL. What's the benefit at development time when using Docker Compose? Do you perhaps have multiple apps sharing a compose file and the name makes each app's queries easier to identify? |
It makes debugging easier if you have a setup with for example Keycloak, Spring Cloud Gateway, and Spring Cloud Vault all talking to the same Postgres instance provided by the compose file. Or if you use Sharing services between multiple applications, for example two Spring Boot applications for two bounded contexts using the same Postgres instance but each with their own database. |
Spring Boot 3.2.5
Logs
Setup
application.yaml
compose.yaml
Currently one has to explicitly configure the application name via
org.springframework.boot.jdbc.parameters
:⇓
The text was updated successfully, but these errors were encountered: