Deploy Flask microservices with Traefik as reverse proxy and load balancer.
You need to install docker and docker-compose first.
git clone https://github.com/goldenrati0/flask-with-traefik-example.git
cd flask-with-traefik-example/
docker-compose up -d
Test with curl to verify microservices are running
curl -H "Host:user.localhost" http://localhost/hello
You should receive a response like
{"msg":"Hello from User Service"}
curl -H "Host:payment.localhost" http://localhost/hello
You should receive a response like
{"msg":"Hello from Payment Service"}
You can browse http://localhost:8080/ to view the Traefik dashboard.