79811748

Date: 2025-11-06 20:35:09
Score: 5
Natty:
Report link

Just advise. (I guess you run ok locally without docker - mean paths are correct - upstream downstream)

  1. Why you use Developmnet running in docker ? Use Production.json
    Normally Dev you run on host without docker using localhost. (Naming doesn't really matter)

  2. When running in docker replace in ocelot json Host - set container name.

  3. ReRoutes instead of Routes (Routes is used with any service discovery like Consul etc)

  4. BaseUrl should use host.docker.internal, not localhost

  5. Check that you run in one network (all containers)

  6. Install in docker container tab Exec something like curl to check if you see other containers/
    apt-get update

apt-get install -y curl

curl http://service name:port../api/.... - just call your other service - should get response

use just ping
apt-get install -y iputils-ping

docker exec servicename1 ping servicename2 -c2

PS I'm stuck with ocelot too in docker - I can call other services (containers) but through Ocelot getting the same error.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm stuck
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Gleb B