This is a configuration or networking issue in your Docker setup. Make sure both your app container and database container are on the same Docker network: