As in the topic, docker is trying to register two times the same bean and that is causing the exception
The bean 'mongoConnectionDetailsForDemoMongodb1' could not be registered. A bean with that name has already been defined and overriding is disabled.
Reproduce
To reproduce create a Maven Spring Boot 3.1.1 with 'Docker Compose Support', 'data-mongoDb' , 'cloud-eureka' and 'Web' on start.spring.io and then just start the application (even with empty properties for service discovery)
Comment From: snicoll
This looks like a duplicate of #35878. If you can reproduce without Spring Cloud, we can reopen this issue.
Comment From: llapinski1987
Ok, but in this project i am not using spring-cloud-starter-config in the dependencies
Comment From: snicoll
Like I said, if you can reproduce without Spring Cloud, we can reopen. If not, a follow-up in the Spring Cloud issue tracker will be required if necessary.
Comment From: llapinski1987
Ok, thanks for help ;)