Consult a lawyer on
https://upcounsel.com/ for $200 to understand your employment contract, if it contains a noncompete, if the noncompete applies in this situation, and how to interpret any noncompete language relative to your local laws which may cause the language to not apply. The relationship part (not getting fired) you have to manage on your own.