For a dollar more you can get ceramic ones that will behave much better in an arcing scenario, which is an omnipresent risk with DC.
But yeah, this is kinda what you do with low voltage 12V and LED bulbs. 12V is such a low voltage that it tends to be pretty docile. 48V on the other hand…
That said I agree with Jay613 that Edison sockets are a foolish way to set up low voltage lighting. There are many, many "bulbless LED fixtures" which are more compact and elegant than Edison screw-in LED types, which are annoyingly expensive for what they are. Not least they can conform to the wall or ceiling and be 1 inch thick, instead of being this ungainly thing sticking out. Heck, they make LED strips which are $15 for 16 feet, and can be cut and spliced every 1-4 inches depending on density. We really do have the option to break out of Edison's mold.
And I wouldn't want to rely on the pull chain switch, which is simply not rated for DC. I'd prefer to use spec-grade or better wall switches.
If you're using AC wires to wire it (great idea, the fat copper section really helps with voltage drop), remember DC - is required to be marked black (or be black) and DC + is required to be marked red. Don't use /3+gnd cable, use /2 and mark the white red.
You might consider switching the negative unless some other constraint prevents this. That is to conform to the standard for 12V LED PWM dimming and RGB/RGBW LED lighting, where the positive is common.
Apropos to nothing, Square D "QO" panels are UL listed for up to 48 volts DC. All others are AC only.