Check out the post.
Build the images and spin up the containers:
docker-compose up -d --build
Test it out:
*http://fastapi.localhost:8008/ *http://fastapi.localhost:8081/
Update the domain in docker-compose.prod.yml, and add your email to traefik.prod.toml.
Build the images and run the containers:
docker-compose -f docker-compose.prod.yml up -d --build
curl -s -H "Host: fastapi.localhost" http://localhost:8008/ |jq