Answer: Earwigs usually congregate and then breed in places that are constantly damp. They feed on decaying organic matter, not plants. They can pinch but do not bite. If they are "everywhere" then you may need to consult with a pest control company, but you will also need to stop the moisture at its source -- eg make sure the basements and garage floor are dry. Keep mulch pulled away from the foundation. Avoid watering at night or in the evening as this can attract them as well. Your local county extension may be able to help you determine what is attracting them to your property and based on that, the best overall control strategy.
A compost bin can be useful, depending on its design and the ingredients you are adding to the pile it may require a lid to keep neighborhood animals out of it. If you turn it regularly and it is made up of a good balance of ingredients so that it is actively composting and heating up, it should not attract animals or pests. If it is heating up and composting rapidy it should not be attracting the earwigs in and of itself. On the other hand if it is a passive system where materials are just sitting and slowly rotting down it might be a potential breeding ground.
Here is general information about earwigs and their control so you can be familiar with some of the strategies.
I hope this helps.
Q&A Library Searching Tips