Changing nginx ports for wp

so i installed wordpress and ngnix over portainer(docker compose)
i wanna use wp multisite, but it only supports port 443 and port 80, however both ports are used by nginx, how do i change one of the nginx ports without locking myself out?(i already did that with wp haha)
for dns i use cloudflare with nginx.