/traefik_demo

Traefik dotnet core demo

Primary LanguageC#

Traefik dotnet core example

This project intends to demonstrate a simple use case of traefik reverse proxy where a dotnet project responds with a greeting to a GET http method on root ('/') and ('/sub') endpoints but it is accessed through /simpleapp and /simpleapp/sub by traefik.

Build and Run

This demo requires Docker.

  • Run build.sh to create the images and stacks where traefik runs on Swarm mode.
$ sh build.sh

You can validate that the dotnet core app is alive and connected on the same network as traefik with the line below:

$ docker exec -it $(docker ps -f name=traefik_traefik -q) curl -X GET http://traefik_simple_app/

License

MIT

Free Software, Hell Yeah!