Images won't display without a domain name

I changed port to 8001,no nginx, congfig as below

DISCOURSE_HOSTNAME: ubuntu1604server
expose:
  - "8001:80"   # http
  - "443:443" # https

then I access ip:8001, site is OK,but after I upload the picture, it will disppear later.

And I found the URL without port

http://ubuntu1604server/uploads/default/original/1X/3be57b2a091a13fbc8d786070df853b12b543854.jpg

if the url is like this add port:8001

http://ubuntu1604server:8001/uploads/default/original/1X/3be57b2a091a13fbc8d786070df853b12b543854.jpg

the picture will display normanlly

What can i do now

Thx a lot

You have an invalid hostname!
Ps: discourse doesn’t work without FQDN.

1 Like

Ah I see thanks a lot