-
Notifications
You must be signed in to change notification settings - Fork 52
Customization of pg_hba.conf #144
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
Hi @vladimirfx, thanks for your question. Could you please describe your use case in more detail? From what you're writing, it seems you have two applications - one where you create an embedded database, and another from which you connect to this database? Why not create the embedded database directly in the application where you need it rather than accessing it remotely? Regarding the customization of the
Another option could be to implement this functionality in the library. The simplest approach would probably be to support some kind of script callback that would be called after initdb but before starting the database, which would allow any changes to any configuration file. What do you think? |
Use case: Why not use container based db? Impl: |
Do I understand correctly that in the Spring Boot environment, I can define a bean of type Relevant part of public ZonkyPostgresDatabaseProvider(Environment environment, ObjectProvider<List<Consumer<EmbeddedPostgres.Builder>>> databaseCustomizers) |
Thanks for the description of the situation.
Yes, that's correct. It's documented here: https://github.com/zonkyio/embedded-database-spring-test?tab=readme-ov-file#zonky-provider-specific-configuration |
In one of test scenarios we need to connect to database from container running in Docker in Docker Daemon. So host on which embedded db is running accessible by its local network IP (something like 10.20.30.40). How I can customize pg_hba.conf to allow such LAN connections?
The text was updated successfully, but these errors were encountered: