Dorian Mode [D Dorian] at the 5th fret.
e --------------------------------------------------------------------5---7---8---10--------
b ------------------------------------------------------5---6---8---------------------------
g -----------------------------------------4---5---7-------------------------------------------
d --------------------------------5---7--------------------------------------------------
a -------------------5---7---8------------------------------------------------------------
e -----5---7---8--------------------------------------------------------------------------
1 3 4 1 3 4 1 3 1 2 4 1 2 4 1 3 4 4
The Root Note "D" [above] is shown in Red
As a guideline the D Dorian mode / scale sounds good with these chords:
Dm Dm7 Em Em7 F Fmaj7 G G7 Am Am7 C Cmaj7
The D Dorian mode is formed from the 2nd note [D] of the C major scale.
C major scale:
C D E F G A B C D E F G A B C D E F G A B C D E ....
-------Dorian Mode--------