I am trying to install Discourse on Ubuntu BUT it's not working

You need an A record in your DNS that resolves discoursedemo.tk to the IP address of your server.