Docker-compose: Error connecting to the Mongo database

What would be the issue with containerizing Mongo in production? What would be a better approach instead?