Remember to read instructions all the way through before beginning.
Roll pie dough into an 18-20 inch circle. Don't worry about perfection here, galettes are supposed to be "rustic", meaning they do not need to be perfect.
Place the pie circle on a parchment-lined baking sheet. It will hang over a touch, but don't worry, it will get folded over the filling. Move this to the fridge to chill while you work on the rest.
Heat a small pan over medium heat. Add the olive oil and heat. Then add in your onions and reduce heat to low. Cook the onions for at least 10 minutes, stirring occasionally, until the onions are caramelized. Add in the garlic at the end of the cooking time and allow them to cook for about 4 minutes with the onions.
While it is cooking, mix the cream cheese, gruyere, za'atar, and salt in a small bowl. Once it is combined, remove the pie dough from the fridge.
Preheat the oven to 375 degrees while you finish putting together the galette.
In a small bowl, mix the egg and milk for the egg wash. Set aside.
Spread the filling in the middle of the pie dough circle, leaving about 1 ½-2 inches all the way around without filling. Add the caramelized onions and garlic on top.
Slice your potatoes about ⅛ inch thick and layer them on top of the onions all the way around. Fold up edges on the galette. Working in about 2-4 inch sections, fold each section in, pleating as you go. Gently press to ensure it stays in place.
Brush the edges with egg wash. Next, brush the potato slices with olive oil and sprinkle with salt and black pepper.
Place in the oven and bake until the potatoes are tender and the crust a golden brown.
Remove from the oven. Allow to cool slightly, I like to wait about 5-10 minutes before cutting.