Relative Content

Tag Archive for pythondockerdocker-compose

Docker compose how to start a service after one is terminated

i want to start a service after a specific script/container is ended.
In particular i want the “app” container start and it will do his staff , this container will execute a python script. After that service finish,i want that another container it will start and his name is “Benthos”.
In particular i want the benthos service start when the execution of the python script is ended.
Docker comopose

How can i solve this issue with docker and mysql’s connection?

These are the logs of the container I’m trying to connect to the other container hosting the mysql db. They both use the same network and the same volume. I can’t think of any other attempts to make besides the ones I’ve already done. Do you have any suggestions? Thanks