The agreement came as the Dodgers' exclusive window to negotiate with Ryu's South Korean team was about to close.
Los Angeles won that right by posting $25.7 million with the Hanwha Eagles.
Ryu, 25, is a seven-year veteran of the Korea Baseball Organization, compiling a 98-52 record with a 2.80 ERA during his Asian career.
Dennis Rodman pledges to end trips to North Korea
Susan Sarandon 'very excited' about daughter's pregnancy