Jim's comment gave me an idea, and I managed to find the root of the problem: MONGODB_URI value should be quoted:
MONGODB_URI
--env MONGODB_URI="$MONGODB_URI" \