So currently I have an Python Flask application. It is a basic script with different webhooks. For each new webhook I want to add I would need a different Docker container. So since I will be expanding the webhooks I must(?) use docker to setup multiple containers. But when I try to create different endpoints with a Dockerfile, I would have to create manually some endpoints in the nginx.conf and different sockets for uwsgi (or build a script which does all the sockets, endpoints etc.).
So what I basically want to achieve is:
Example.com/webhook1 (container1)
Example.com/webhook2 (container2)
Example.com/webhook3 (container3)
etc.
What would be my best approach to have different containers running with different endpoints?
My server is a Ubuntu server using NGINX as a reverse proxy with uwsgi, and certbot for the ssl cert.