boilerplate code for FastAPI app attached to Traefik reverse proxy
cookiecutter https://github.com/quaternionmedia/fastapi-traefik-cookiecutter.git
With a running traefik instance and 'web' network in docker (see moat ):
docker-compose up
then curl localhost -H Host:your.domain
should return "Welcome home!"