I'm sorry to hear that your married life is not going well. Don't lose hope, most marriages go through troubled waters in the first 2-4 years, even risking a breakup, navigate with help to reach calm waters for a smooth sailing.
Since both of you have a daughter, put her as the first priority, so both of you have to be around to see her grow. No parent or a father would want to see his daughter grow up as an orphan or a have a troubled family to grow with and repent for the rest of her life.
So, I suggest first since both of you have made attempts to end your lives, please accept that there are major issues in the marriage that needs to be addressed to.
Once you take the first step of accepting a problem, that means you have the courage to fix it, all you need is time and patience. See a good psychiatrist (for both of you) to help with your intentions to end life.
Both of you agree that it needs efforts from both sides and set a timeframe not 1 or 2 months but at least a year.
Then start your journey on the road to recovery, this is where family and close friends can become a pillar of strength, a shoulder to cry or lean on. If you find such people, don't hesitate to open up and ask for help.
Find a suitable marriage counselor or a psychologist who can assess each of you and find out unresolved issues that need to attend.
Keep focussing on your daughter as she is the bridge between both of you and your ray of hope to save yourselves and the marriage.
Plan family dinners, visits to temples of your faith, short trips.
Make a frank list of what each of you expects from the marriage and each other. I mean literally writing it down. It takes enormous courage to be able to write down for instance that- I'm not a good husband because of my anger issues, because of alcohol and the same from your spouse.
Once you start the above, put aside all the bad memories and agree that you both are starting fresh bearing in mind that there are many ways to save a marriage but only one to end it.
Continue the momentum especially sticking to the timelines, going for follow up visits, after 3 months assess and see the results. Make changes if necessary and review after 6 months.
There are many books and information available on this subject. For instance, Wining your wife/husband back before it's too late. The divorce remedy etc. Read through them, often, it is at desperate times that man finds his inner strength and solutions to life's major problems.
If at 6 months you are back happy please continue this for another year until your bonding becomes stronger.
If not imagine that you are going to a divorce and the court will ask you both to give it a try for another 6 months. This you both can do without the family court telling you. Give this a thought and involve your wife, only if nothing helps, assess the consequences of a separation between you both and your daughter and take a decision to continue as a couple or part as friends with daughter as your common point of love.
Please banish the thoughts of ending your lives, there are far more great things to do in life.