Whilst preparing a demo and presentation on the new Docker Compose and Testcontainers support I noticed that not everything that is supported through Testcontainers is supported through the Docker Compose support. There are probably compelling reasons for this, but there is no hint in the reference guide into the why.

The 3 cases I found are - Couchbase - Kafka - Neo4j

For these the Docker Compose support is absent. Maybe an oversight for some technologies for others maybe a thoughtful decision but at least it would be nice to have a hint.

Applies to Spring Boot 3.2 (and maybe 3.1 as well).

Comment From: wilkinsona

I don't think this is the sort of that we would want to document. Furthermore, documenting things that aren't supported would, essentially, be a never-ending task.

There is some reasoning in related issues:

  • https://github.com/spring-projects/spring-boot/issues/35140
  • https://github.com/spring-projects/spring-boot/issues/35137

I think Neo4j is an oversight – it's missing from the table in https://github.com/spring-projects/spring-boot/issues/35029 – so thanks for bringing that to our attention. I've opened https://github.com/spring-projects/spring-boot/issues/37379.

Comment From: artemptushkin

@wilkinsona is it documented eventually? I see that's Kafka is not supported probably but the only list of supported containers I found is this

do we need service connections? I want just to start Kafka and do not use the service connections, is it possible?

Comment From: wilkinsona

do we need service connections?

No, they're largely a convenience that reduces the amount of configuration that's required.

I want just to start Kafka and do not use the service connections, is it possible?

Yes. You can configure Kafka in a compose.yaml file and the environment variables that are required to connect to it without using service connections.

If you have any further questions, please follow up on Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.