paurakhsharma/python-microservice-fastapi

Same port of uvicorn

kadnan opened this issue · 3 comments

So both services are running on uvicorn app.main:app --reload --host 0.0.0.0 --port 8000?

Yes, they are but remember they are in a different container,
hence they can both run on the same port.

I know that part but what if one wants to access Service A and Service B, what IP and Port will they get for both?

nvm I noticed different forwarded ports: - 8001:8000