testcontainers-go icon indicating copy to clipboard operation
testcontainers-go copied to clipboard

[Enhancement]: Allow network selection for modules (e.g. postgres)

Open tomek-kontakt opened this issue 1 year ago • 1 comments

Proposal

Motivation When a sidecar service, such as a cron job or processor, operates in conjunction with a database, we would like the ability to attach both the service and the database to the same network. Currently, this option appears to be available only for generic containers.

Proposal Add another configuration option to options.go that enables setting the network (by name or by reference) and aliases. Alternatively, this feature could be introduced to selected modules as a module-specific configurer.

tomek-kontakt avatar May 28 '24 21:05 tomek-kontakt