django.db.utils.OperationalError: (2002, “Can't connect to MySQL server on 'db' (115)”)
问题 This has already been asked, but none of the answers have helped me. This is my configuration. Im running docker-compose with two services, a web app in django and the database in mariadb. I can connect normally to my local db with this exact configuration, only changing the host in settings.py to localhost. When i run docker-compose up , the web service stops immediately after trying to connect to the database, and return this error. django.db.utils.OperationalError: (2002, "Can't connect to