Failed Uploading Avatar and Photos

I don’t know why I cannot upload attachments, such as photos after a successful Discourse Docker installation.

And If I choose an avatar at Discourse ID before I log in a new account, the avatar can be displayed correctly. When I try to later on change a avatar, it fails again.

I want to know how to fix this issue. Will I have to set a amazon SC3 to prevent it happen again?