Adding new endpoint

Hello, I have deployed an application via docker, I simply pulled the image and did it, now I need to add a new python script which will act as an api end point, I have 3 containers running, the application, nginx and postgres. How should I go about it. The application is deployed on a self hosted server

We don’t know where the python script is supposed to run, or needs to be run. Does it communicate with the other containers through IPC, files in the filesystem, or though network connections?

There is a lot in your head that you seem to forget to mention in the post. So please provide enough context required for someone else to understand what you try to achieve exactly and how it’s supposed to work.