Short answer
Dwarf gouramis are usually calm in a community tank, but males are territorial with each other. Keep one male with a female or two, plus small peaceful tankmates, and they tend to settle in well. Two or more males, or fast fin nippers, are where trouble usually starts.
Males and females
Males are larger and more colorful, with pointed fins. Females are duller and rounder. Males become more territorial during breeding and may chase or nip other fish. Two males in one tank often fight, which is why most guides recommend a single male.
Tank size
Sources disagree on the minimum. Some list 10 gallons as enough for a pair, while others suggest 20 gallons as a safer minimum for a community. A planted tank with plenty of hiding places helps reduce stress and fights. If you plan to add more species, see how many fish in 20 gallon tank.
Tankmates
Small, peaceful fish that keep to their own space are the best partners. Corydoras on the bottom are a common choice, and you can read what do corydoras need in a tank before adding them.
Avoid other gouramis and bettas. They are labyrinth fish that can see each other as rivals. Also avoid fin nippers, large or boisterous fish, and fish with bright colors that could be mistaken for rivals.
Feeding and competition
Dwarf gouramis are slow eaters, and in a busy community they can lose food to faster fish. Feed in a couple of spots, and make sure there is enough food for everyone. For a sense of portions, see how much should i feed my fish.
Water and temperature
Dwarf gouramis are typically kept in the mid-70s to low 80s °F, similar to many tropical community fish. They prefer gentle water flow and plenty of plants, and stable water keeps them comfortable.
Signs of trouble
A male that chases or nips others, a fish that hides constantly, or a dwarf that stops eating all point to a problem. Check group numbers, the number of males, and whether a faster fish is taking more than its share of food. If a fish is not eating at all, see why is my fish not eating.
Bottom line
One male, one or more females, plants and calm tankmates usually make a peaceful dwarf gourami community. Add a second male or a fin nipper and the peace often breaks down.