Your situation depends on a lot of different factors.
Since you are fastening your deck to the house and using footings at the outer end of your deck, your deck will be permanently mounted and no heaving will occur.
HOWEVER, your pool WILL heave and this is where your soil type and drainage around your pool comes into play because it has a big effect on how much your pool will heave over the winter.
Great drainage with soil that does not retain water will mean you will only get a little heaving, however, soil that saturates and holds water easily and does not drain off well will heave a lot more in the winter.
My place has the second type of soil - clay, plus - we are in a low lying area so it saturates often - and for me to do the setup you are planning would mean I need to leave at least 3 inches between the deck and top rail, any less and I'll crush my wall when it gets pushed up into the permanent deck structure.
If I had great drainage and soil to accommodate, I could probably get away with an inch, although that is just a little too close for comfort and I would be tempted to go with 1.5 to 2".
If you leave the deck free floating, you can get really close to the top rail since both structures will lift about the same, however, you cannot fasten the deck to your house then or your house wall will incur damage due to the deck twisting at the fastened end.