Help with BalenaCloud Deployment for Multi-Container App

Hey guys… :wave:

I am new to Balena and trying to deploy a multi-container application using BalenaCloud. I have set up the docker-compose.yml file and pushed the code using the Balena CLI. The containers build and appear to start successfully, but I’m running into an issue where one of the containers fails with a “connection refused” error when trying to communicate with another container.

Here is what I have done so far:

  1. Defined the services in docker-compose.yml and ensured they are in the same network.
  2. Verified that the services are using the correct environment variables for communication.
  3. Checked the logs in the Balena dashboard, which confirm the error happens during an HTTP request from one service to another.

I check this: https://forums.balena.io/t/multi-container-multi-device-with-a-single-codsalesforceadmintraining But I have not found any solution. I am wondering if there’s something specific to Balena I might be missing, such as networking or configuration nuances?

Any tips or guidance would be greatly appreciated. Let me know if you need me to share more details about my setup.

Thanks in advance!

Respected community member! :smiling_face_with_three_hearts:

Hello @laban48707 and welcome to the balena forums!

Would it be possible to post your docker-compose file here and also the http request that is failing?

1 Like