Don't grow spinache anywhere near your MJ plants, other than that everything else is fine. You have to keep a close eye on them because some veggie plants attract pests such as aphids better than others. You may also want to look into growing Marigold's. They are a natural pest repellant for MJ as well as veggie plants.
Do you have stinging nettles growing in your garden? Then you're in luck! Don't get it twisted, these plants, when kept under control, are a powerful ally.
Don’t grow squash or melon in the same garden as cannabis. That’s just asking for aphids. I would grow marigolds as a trap plant for spider mites. I have grown peppers, okra and tomatoes alongside mj and it was fine. This year I’ve got dill, chamomile, Thai basil, and lavender as companion plants. Veggies in separate greenhouses.