Struggling to connect via publicip:8000

what is publickey? Is it a host name you configured? Are you trying to connect to Ratel from another machine? If so, you might have to configure some port forwarding on the docker container so it is accessible from outside your machine.