class PostgresqlProjectGenerationConfiguration {

	private static final String TESTCONTAINERS_CLASS_NAME = "org.testcontainers.containers.PostgreSQLContainer";

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

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

}

		return (composeFile) -> serviceResolver.doWith("postgres",
				(service) -> composeFile.services()
					.add("postgres",
							service.andThen((builder) -> builder.environment("POSTGRES_USER", "myuser")
								.environment("POSTGRES_DB", "mydatabase")
								.environment("POSTGRES_PASSWORD", "secret"))));
	
<no_super_class>