During deployment using docker-compose build or up and other options, the container serving the flask app will need to be restarted thus creating some sort of downtime and we don’t want this. Obviously switching to docker swarm or Kubernetes will be the first thing that comes to mind, but this is just a simple webapp hosted on an EC2 instance running on amazon free tier and we obviously don’t have resources (money) for this kind of infrastructure.