print don't show up in the logs

Hello,

I’m trying to run multicontainers. In fact there are 2 py files running in 2 different containers. Python files are printing on a while. But I can’t see the printing on the logs. When I run only one file it works. Can someone help on it. Attached py fil, dockerfile and docker compose.

Thank you.

Hugo



image

Indeed am I building containers correctly ? I don’t see any file in src when I do ssh connection with services.

Hello @Hugo what i see here is that you are building 2 services on the docker-compose from the python docker image instead from your dockerfile. Is that correct? Or could you please confirm what is the python image?

Check this Docker documentation if you would like to learn more Try Docker Compose | Docker Documentation