If you frequently wake up to urinate during the night, do not drink a lot of water near bedtime.
And if you respond to your bladder every time and go to the bathroom frequently, your bladder will habitually wake you up in the middle of the night. All You need to do is to practice ‘convincing’ your bladder to go to the bathroom in the morning when it is time to wake up. If you still have to urinate five minutes later, then you can go to the bathroom. Most likely you can go back to sleep with a full bladder and go only visit the toilet in the morning.