Originate / exosphere

A modern cloud-based micro-service framework
MIT License
18 stars 6 forks source link

configuration for host port assignment #959

Open charlierudolph opened 6 years ago

charlierudolph commented 6 years ago

Ability to specify what port to start counting from, and ability to specify a host port for a given service. I think the service override should be in the application.yml in order to support reusable services.

services:
  service1:
    location:
    host_port: # specify dedicated host port for this service

initial_host_port: # specify what port to start counting from

@hugobho @alexdavid @Bowbaq @dminnear @bishtawi @allensallinger thoughts?

hugoesthere commented 6 years ago

This would only pertain to public services right? I'm not sure a public service would ever need to be reusable, one because I can't see any use case for that, but also because there's some configuration (mainly url), that I can't see being reused - so I don't think it'd be a bad idea to list these ports in service.yml. At the same time, it does make sense to list host ports in the app.yml as that gives you a high level view of which services are assigned which ports

Bowbaq commented 6 years ago

What's a reusable service? Is the intended behavior here the following: