hey I am working on a project using docker compose. I need one image to use the other images' 5001 port and its not working... if I run this outside a docker container using standard version of these services it seems to work fine.
here is my docker compose file:
version: "3" services: web: image: fulton/pegasus ports: - 8000:8000 depends_on: - ipfs ipfs: image: ipfs/go-ipfs ports: - 5001:5001 - 8080:8080
and here is the code that is giving the errors (its kotlin)
val response = Unirest.post("http://0.0.0.0:5001/api/v0/add?chunker=size-262144&hash=sha2-256&inline-limit=32") .field(file_name,file_data) .asString()
I am pretty new to compose and any help will be awesome :]