A compounding pharmacy has leased more than 1,800 square feet at a Woodbridge office building, according to a brokerage team with NAI James E. Hanson.