compose icon indicating copy to clipboard operation
compose copied to clipboard

Basepath over whole serverless compose project

Open RickVerkuijlen opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched existing issues, it hasn't been reported yet

Use case description

I'm using serverless compose over multiple projects. All these project communicate with each other through API requests. Some of the endpoints are similar over the different projects. With serverless compose, I want to prefix all the services within the compose with an endpoint.

Proposed solution (optional)

It would be nice if its possible that in the serverless-compose.yml, we can add something like basepath: {PREFIX}. This could result in all the services within that compose file having that prefix.

RickVerkuijlen avatar Mar 28 '23 14:03 RickVerkuijlen

I've came across an issue that has to do with this. I'll try to explain it. In service A, I have the endpoint /tenant. In service B, I have the endpoint /tenant/{tenantId}. Lets say I want to deploy service A before I want to deploy service B. Service A is deployed, and the endpoint /tenant is created. When I want to deploy service B, it complains about the parent (/tenant) already existing. It would be nice if the ID of the parent can be recognized automatically.

RickVerkuijlen avatar Apr 20 '23 07:04 RickVerkuijlen