Services not see each other in docker-compose

Portainer version : 2.0.0

I’m deploying small app that consist in Django and linked Database.

While I deploy it via CLI (docker-compose … up) it works perfectly.
But it I deploy it via Portainer Stack the Django app do not see Database.

The only difference, I use docker-compose v 3.7 via CLI.
It seems that docker-compose v3 is not supported in Portainer 2 in standalone mode.

As my docker-compose is very simple, changing version to 2.4 seems to be good for portainer.

The both container are in the same network. But they do not see each other.

Do somebody have an idea where could be the problem ?


Thanks for posting, requesting u to use the installation steps from documentation page

please use custom bridge network so that containers can reach