☆
8
docker compose ports not reachable from another container on the same network
Docker Compose v2.27, two services: api and worker. api exposes 3000:3000. From the worker container I can't reach api at localhost:3000, but api:3000 works fine. I thought being on the same compose network meant localhost would work here. Also tried 127.0.0.1 with no luck. Is this expected behavior or do I have a network config wrong?
1 replies