nestjs-microservice-architecture icon indicating copy to clipboard operation
nestjs-microservice-architecture copied to clipboard

port communication

Open toneyavuz opened this issue 6 years ago • 3 comments

Hi Jesse,

I don't understand services ports communication. you wrote expose 3000 in graph API > Dockerfile but wrote 4200:4200 in docker-compose.yml.

toneyavuz avatar Dec 04 '18 07:12 toneyavuz

I see 4200 in the GraphQL API?

https://github.com/WonderPanda/nestjs-microservice-architecture/blob/master/services/graphqlapi/src/main.ts

https://github.com/WonderPanda/nestjs-microservice-architecture/blob/master/docker-compose.yml

miking-the-viking avatar Dec 04 '18 20:12 miking-the-viking

@bhenav Miking is correct, the application actually gets exposed on 4200. In this case the Docker Compose file is overriding it to the correct value but if you were to try and run the Docker image for the GraphQL API service in isolation you'd probably run into issues. I'll push up some changes to make this more configurable.

Thanks for pointing that out

WonderPanda avatar Dec 04 '18 20:12 WonderPanda

Ok, Thank you both.

toneyavuz avatar Dec 05 '18 07:12 toneyavuz