class ElasticsearchProjectGenerationConfiguration {

	private static String TESTCONTAINERS_CLASS_NAME = "org.testcontainers.elasticsearch.ElasticsearchContainer";

	@Bean
	@ConditionalOnRequestedDependency("testcontainers")
	ServiceConnectionsCustomizer elasticsearchServiceConnectionsCustomizer(DockerServiceResolver serviceResolver) {
		return (serviceConnections) -> serviceResolver.doWith("elasticsearch",
				(service) -> serviceConnections.addServiceConnection(
						ServiceConnection.ofContainer("elasticsearch", service, TESTCONTAINERS_CLASS_NAME, false)));
	}

	@Bean
	@ConditionalOnRequestedDependency("docker-compose")
	ComposeFileCustomizer elasticsearchComposeFileCustomizer(DockerServiceResolver serviceResolver) {<FILL_FUNCTION_BODY>}

}

		return (composeFile) -> serviceResolver.doWith("elasticsearch",
				(service) -> composeFile.services()
					.add("elasticsearch",
							service.andThen((builder) -> builder.environment("ELASTIC_PASSWORD", "secret")
								.environment("xpack.security.enabled", "false")
								.environment("discovery.type", "single-node"))));
	
<no_super_class>