- Create an ecr registry called mytraefik
- Update app1 and app2 server urls in dynamic_conf.yml to point to other apprunner urls you already have
- Update
.example.comusage in dynamic_conf.yml to a domain you have and will link to - Build image locally
docker image build -t mytraefik:latest . - Tag image
docker tag mytraefik:latest <yourawsaccount>.dkr.ecr.us-east-1.amazonaws.com/mytraefik:latest - Push image to ecr
docker push <yourawsaccount>.dkr.ecr.us-east-1.amazonaws.com/mytraefik:latest
- Create a new app in apprunner called mytraefik
- Make sure port 80 is set
- Link a custom domain the same one you use in the dynamic_conf.yml config and enter as a wildcard e.g
*.example.com
Once deployed you should be able to visit app1.example.com and app2.example.com but have the apprunner containers you already have be served to you