I'm running two containers using docker-compose
. Is there an option to force docker-compose to rebuild and to run the container after any code change? If so, I would like to get an example. If it isn't possible, is there a workaround for that case?
docker-compose down
,docker rmi <image>
,docker-compose up
when a code change happens (assuming thedocker-compose
also builds the image if needed)?