Some employers are quite strict, so avoid those (google, famously). Avoid even a hint of crossover with your employer’s business, use your own equipment and time, and work for a successful company that is too busy with its own customers. If some how you make a billion dollars (you won’t) it might be a problem. A million won’t even be noticed.