Set MongoDB port to 18017 during build to avoid conflict.