Unable to update senrty docker new public ip

i installed sentry through docker in aws instance.
when i installed sentry at that time sentry is working fine but when i update public ip of machine then sentry hit to its old ip . how to reconfigure new public ip in sentry
please help…