In a large, deep skillet, heat the olive oil. Add the onion and cook over moderately low heat, stirring, until softened, about 6 minutes. Add the red cabbage and cook over moderate heat, stirring occasionally, until slightly wilted, about 10 minutes. Stir in the red wine and cook until evaporated. Add the cider vinegar and bring to a boil. Stir in the apple, brown sugar, caraway seeds and mustard seeds and season with salt and pepper. Cover, reduce the heat to low and cook, stirring occasionally, until the cabbage is tender, about 1 hour. Transfer to a bowl and serve.