You should not worry that your family, friends, nor neighbors find out that you have filed for bankruptcy. Unless someone is listed on the petition as a creditor, a cosigner, or a party to an existing contract you may have there is not a reason they should know about your bankruptcy filing.
However, bankruptcy filings are matters of public record which if you search you can find. They are not usually a common bit of news put into a newspaper but for the most part it is fairly discrete.