PV, even including installation, is a fraction the cost of grid power in many locations. It is also reliable.
I think it makes economic sense with net metering. Without, maybe only if sufficient daytime loads.
Batteries, DIY or server rack, are also a fraction the cost of grid power. As a user-installed system I think they can make sense given otherwise unfavorable time of use rates, or where net metering terms are poor or unavailable. But it relies on your skilled and knowledgeable support.
Turnkey installed batteries may not make sense. Some recommended brands for use with SMA inverters cost as much or more than grid power when I checked. They may be getting more reasonable. I don't think you can get a turnkey system built with the low-cost batteries you select.
Support of these battery systems is going to be the issue. Given many different brands, I don't think you'll be able to call for support, either cost-effectively or at all. If a couple big brands (e.g. Tesla Powerwall) are priced to make economic sense, then they will probably be supportable at reasonable cost as well.
The grid, with utility sending maintenance workers, is a more efficient way to keep power on. Customer owned equipment (just breaker panels and wiring) has much lower failure rate than inverters, batteries, PV arrays.