As Chris says, the stress is on the noun: white DWARF.
The fact that they are compound nouns is doesn't affect the stress patterns. So 'white DWARF' ( the astronomical term) is stressed in the same way as 'white DWARF' ( a pale-skinned person of restricted growth).
The stress only shifts when the adjective and noun combine to make a single word, as in the textbook examples which Chris gives - GREENhouse and BLACKbird - or BLUEbottle and GREYhound. ( species of insect and dog, respectively).