Skip to content

Point rest client at docker compose dev service #50797

@LarsSven

Description

@LarsSven

Description

We have a setup where we use the Quarkus compose dev service in dev/test mode, which, among other services, spins up a service that has an HTTP frontend, which our Quarkus application talks to. Currently, we have our configuration set up as following:

quarkus:
  rest-client:
    assignments-api:
      url: http://localhost:8081

However this obviously starts failing once the docker container that is spun up by the compose service no longer has localhost as its host (like in a CI for example).

How can we make the URL host that the rest client points to when using docker compose dev services change dynamically based on where the docker compose container is spawned? Just like how it currently works for Quarkus extensions where the host of things like kafka/mysql dynamically are configured depending on the host and port of the dev service container.

Implementation ideas

It would be nice if there was some integration such that we can link a rest client endpoint to a dev service (for us specifically a docker compose one), such that the host is correct when in test/dev mode.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions