In my country non-compete agreements are only legal if there's a specified, concrete compensation for them. (E.g.: you're not allowed to go to a competitor for 9 months, but if you leave or if you're laid out then you're entitled for 9 months pay or 'gardening leave'). If there is no clause like this in the contract, then it's illegal.