If I do not select "All" in the Source IP section for the port assigned to MongoDB and instead provide only the internal IP (127.0.0.1) or the server's IP, my applications running on Docker cannot access the database.
When I configure a firewall rule to allow access to the MongoDB port using internal or server IP, I encounter database access issues, receiving errors such as "Topology closed" or "Connection timeout." However, when I make the database port accessible from all IP addresses, there are no issues.
Is there a solution to fix this issue?