Soak the beans for at least 2 hours, then drain the water.
Cut all the vegetables into small cubes, finely chop the garlic, dice the bacon very finely, cut the sausage into slices. Drain the canned tomatoes and cut into large pieces. Tie the spices together.
Fry the garlic with the onions in the olive oil, then add the vegetables, stir in the beans, tomatoes, sausage and bacon, deglaze with the stock and water.
Let everything simmer over low heat and with the lid closed for at least 1 1/2 hours.