Can't connect mysql database on another host machine from django container deployed on portainer

Viewed 15

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.

0 Answers
Related