Our initial cut of testcontainers service connectors added ContainerConnectionDetailsFactory implementations to spring-boot-test-autoconfigure. With #29461 in mind, it would make sense to extract them so that they can be reused at devtime.
One thing we'll need to reconsider is the @ServiceConnection annotations. These make less sense outside of the test code. Perhaps we can inspect the image name and use that to determine which connection to establish. Test containers already supports DockerImageName.isCompatibleWith so perhaps we can use that to determine which container connections to establish.