Constant Restarting of Nginx Container

As part of deploying my project on my Mac, I created two nodes and Nginx. The problem is it says it is restarting and does not show the IP and ports for this specific container, although the other connections with the two nodes seem to be working. I need to mention that I have this app deployed on our Linux server with the same docker. I am trying to simulate the environment on my Mac for testing and development purposes.