Other forms: docudramas
A fictional movie or TV show that's closely based on a true story can be called a docudrama. All The President's Men is a docudrama about the Watergate scandal.
The term docudrama was first used in American English during the 1950s, from documentary and drama. It's most often used for television programs that strive for some accuracy in representing historical events, sometimes reenacting situations using real details and dialogue. Docudramas inevitably also fill in unknown details and ramp up the dramatic interest of the story using creative license.