he was born into an aristocratic family near athens around 525 bc and served as a soldier in the persian wars and participated in the great dionysia which is part of a festival honoring dionysus who is the greek god of wine .