Switching between Docker, Minikube and K8s in the cloud

We have an application, called “Engine” and we can run many instances of these at the same time, one of these instances will run in Docker container (exposing a port to the local host) another one in Kubernetes cluster using Minikube, and other instances in a Kubernetes cluster in Digital Ocean. My question is: Can we use Traefik (running in the local host machine) as the main entry point for these three? In this way can switch which one will get the next request