Geese are highly individualistic so it’s hard to predict what dynamics you’ll end up with, though in general geese like their personal space so a separate hutch, cage, or coop at night away from the chickens and ducks is preferred for everyone’s safety.
For the most part geese tolerate other birds so long as they aren’t constantly invading their space. Ganders get hormonal in winter/ spring breeding season and they become easily angered and territorial. They can’t help it and there’s no way to prevent it, even if there isn’t a female they’ll still behave this way.
Geese are accepting of everyone who spends a lot of time with them. People that they don’t know at all are usually scary to geese, people that they know but who they don’t spend much time with can be regarded as rivals and invaders to their territory, so relatives that don’t spend much time with them may have it rough in breeding season.
However if you do get an aggressive gander how you deal with an attack is if they charge say “NO” firmly then grab their neck just below the jaw “so they can’t bite you” gently but firmly enough that they can’t get away, while you scoop them up with the other arm and carry them around for a minute. Hormonal ganders like to think of themselves as gigachads, picking them up rocks their whole world in a humane way, a good snuggle is always fun to get in anyway and when you set him back down he’ll think he got scooped up by Godzilla and be more chill for awhile.
As you or someone else keeps doing this and he’ll learn what “NO” means and attempt to conduct himself more civilly. Like I said though, they can’t really control themselves when they’re hormonal so you’ll have to repeat this often if he has a spicy personality.
Chasing them around reinforces his view that you’re a threat he needs to defend his mate from, holding him down reinforces his perception of you as a rival because in his pea brained hormonal state of mind you just lowered your size to something he thinks he can vanquish.
For those that don’t have time to socialize with the geese simply holding some sort of staff or broom is enough to keep the geese away. The geese will probably never like them but they’ll avoid the spooky staff thing.
Geese like routines. It can be hard getting them in their cage but patience and practice are the key to teaching them. You can entice them with tossing treats in the first few times, then herd them in the direction of the cage while repeating “in in in,” “bed bed bed,” or whatever you prefer repeatedly. It’s easier if you have another person to help the first few times. After they learn the routine it’s not really difficult getting them in for the night.
Geese naturally avoid “caves” because they prefer to be in wide open spaces where they can see predators coming, they also don’t like the sound of rain on a roof, for some reason it freaks them out so they’ll prefer to be out in the weather. However we do know better, that being in a secure enclosure away from predators and extreme weather is in their best interest so they just have to learn to deal with it.
You can try using a lamp as another commenter mentioned, but it isn’t completely necessary, geese are individuals so some might prefer a lamp but they can be weaned off from it. Many lamps are safety hazards in coops so I advise against it unless it’s absolutely necessary and please do your research on lamps with better safety standards if you are considering one in their coop. Absolutely do NOT use those cheap tin clamp heat lamps sold everywhere unless you’re planning on never taking your eyes off it. Those are dangerous, I just had one almost light my carpet on fire after it spontaneously disassembled.
Geese are great hawk deterrents because of their size. My flock all fear hawks but the hawks see enormous possibly dangerous birds so they don’t bother with my ducks.