I want to configure localstack as a shared container between different micro services. But the problem in my company's environment is, these different micro services configure different ports for different services in localstack and hence every microservice's docker-compose.yml file has localstack configured as a service and custom ports pointing to different services on localstack. So for example, one micro service will configure DynamoDB with port 4569 while another with port 8000.
What I want to do is I want to either configure nginx proxy so that all the traffic from any of the DynamoDB ports goes to one DynamoDB port on localstack(I have used DynamoDB as an example, basically it can be any service on localstack) OR do some port configuration in docker-compose.yml (Configure multiple ports connecting to one container port on DynamoDB on localstack) file that will facilitate me using localstack without much changes.
Is this possible? Is there any example that I can refer or use to configure this?