our dog had similar issues (came as a rescue) but very different breed.
We do a mixture of avoiding triggers and training.
When we go for a walk, we cross roads and do extra circles of fields so that we never come close to unknown dogs (he is fine once he gets to know a dog).
I spent a LONG time at the far side of the field, with him next to me, me talking in a light happy voice while feeding him treats as a dog walks by in the distance. Once he was chill with that, we got closer and did the same.
Now we can walk past another dog at about 5 metres, but can never meet a dog face to face, even dogs we know, we walk off the path and approach formt he side.
He MASSIVELY responds to my voice and temperament. I had to train myself to say
Hey silly dog, no need to bark, you're ok, COME that's it COME here, sit with me yadda yadda yadda.
All the time he is pulling at the end of the lead and barking his head off.
It gradually worked.
Also I taught a crisp COME command. When I say it now, he flicks his head round to me. If I can get him to do that when barking, it breaks the fixation and then he will focus on me.
I should say that I can never walk him off lead because of the was he reacts to other dogs.
I walk 1hour 15 minutes every morning and dh walks him 45minutes in the evening. Without that exercise he would be manic.
Same with front door. We had a mat on the other side of the hall, and we taught him to sit on the mat when the doorbell goes. I don't answer the door until he is sitting. then person comes in and shuts the door, then he is allowed to come over and say hello. I got friends to come t the door and follow the rules with him. Initially it took 2 of us, one opening the door, while the other stays with the dog, repeating SIT, and again positive voice and rewards when he is sitting and not barking.
he does still bark out of the front window at passing dogs, so that door is shut unless I am in the room