Skip to content

Question - Swagger UI and Swagger Services on different Servers #1001

@HashtagMarkus

Description

@HashtagMarkus

Hi,
I am currently setting up a small microservice architecture. I would like to run the Swagger UI in a docker container and my rest services in another.
I can't find a way to make my services known to the swagger ui. I am using the swagger-ui maven artifact which I included in a Springboot application.

e.g:
Swagger UI Docker Container: http://localhost:8080
RestService1 Docker Container: http://localhost:8081
RestService2 Docker Container: http://localhost:8082

I can access the /api-docs path on both services. However I can't figure out how to configure Swagger UI accordingly.
How can I configure Swagger UI to discover the api-docs endpoints of my other docker container?
Unfortunately I can't find any resources addressing this setup. Is this even possible using the maven archetype?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions