@Override
    protected void configure() {
        super.configure();

        exposePorts();

        WaitAllStrategy waitStrategy = new WaitAllStrategy();

        // Makes sure that all nodes in the cluster are healthy.
        waitStrategy =
            waitStrategy.withStrategy(
                new HttpWaitStrategy()
                    .forPath("/pools/default")
                    .forPort(MGMT_PORT)
                    .withBasicCredentials(username, password)
                    .forStatusCode(200)
                    .forResponsePredicate(response -> {
                        try {
                            return Optional
                                .of(MAPPER.readTree(response))
                                .map(n -> n.at("/nodes/0/status"))
                                .map(JsonNode::asText)
                                .map("healthy"::equals)
                                .orElse(false);
                        } catch (IOException e) {
                            logger().error("Unable to parse response: {}", response, e);
                            return false;
                        }
                    })
            );

        if (enabledServices.contains(CouchbaseService.QUERY)) {
            waitStrategy =
                waitStrategy.withStrategy(
                    new HttpWaitStrategy()
                        .forPath("/admin/ping")
                        .forPort(QUERY_PORT)
                        .withBasicCredentials(username, password)
                        .forStatusCode(200)
                );
        }

        if (enabledServices.contains(CouchbaseService.ANALYTICS)) {
            waitStrategy =
                waitStrategy.withStrategy(
                    new HttpWaitStrategy()
                        .forPath("/admin/ping")
                        .forPort(ANALYTICS_PORT)
                        .withBasicCredentials(username, password)
                        .forStatusCode(200)
                );
        }

        if (enabledServices.contains(CouchbaseService.EVENTING)) {
            waitStrategy =
                waitStrategy.withStrategy(
                    new HttpWaitStrategy()
                        .forPath("/api/v1/config")
                        .forPort(EVENTING_PORT)
                        .withBasicCredentials(username, password)
                        .forStatusCode(200)
                );
        }

        waitingFor(waitStrategy);
    }
Enables the eventing service which is not enabled by default.

@return this {@link CouchbaseContainer} for chaining purposes.
modules/couchbase/src/main/java/org/testcontainers/couchbase/CouchbaseContainer.java