Avatar image path in quoted text start with 'localhost'

I am migrating my forum to discourse. Database data has been migrated to my macbook. I created a backup in local and uploaded to my AWS EC2 server.

After restore done I found that the avatar image path in quoted text start with ‘//localhost:3000/’, which makes the avatar image couldn’t be shown. I wonder if anyone could tell me how to solve this problem?