I have the springdoc in my application that generates swagger using the default url http://localhost:8090/swagger-ui/index.html
If your app is listening on port 8090 inside the container then you need to map the host port to 8090 in your compose file e.g.:
ports:
- '8090:8090'