I have a django docker container deployed on portainer. In settings.py, I specified the ip of where my database is hosted. For some reason it is always redirected to the ip of portainer's host machine.
PS. I'm using nginx proxy manager for reverse proxy.