aspnetrun / run-aspnetcore-microservices

Microservices on .Net platforms which used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
https://www.udemy.com/course/microservices-architecture-and-implementation-on-dotnet/?couponCode=JUNE24
MIT License
2.53k stars 1.38k forks source link

ERROR: for shopping.aggregator Cannot start service shopping.aggregator: Ports are not available: listen tcp 0.0.0.0:8005: #24

Closed gawandashish closed 3 years ago

gawandashish commented 3 years ago

After running "docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d", I am getting following error -> discount.api is up-to-date basket.api is up-to-date ocelotapigw is up-to-date Starting shopping.aggregator ... Starting shopping.aggregator ... error

ERROR: for shopping.aggregator Cannot start service shopping.aggregator: Ports are not available: listen tcp 0.0.0.0:8005: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

ERROR: for shopping.aggregator Cannot start service shopping.aggregator: Ports are not available: listen tcp 0.0.0.0:8005: bind: An attempt was made to access a socket in a way forbidden by its access permissions. ERROR: Encountered errors while bringing up the project.

Could you please help me on this?

mehmetozkaya commented 3 years ago

Your 8005 port is using from other threads, so you need to change this port number something else in docker-compsose override file.