Dgrah connection issue

I am having trouble connecting to dgraph- i am trying to install dgraph via aws ec2. Issue is that i am getting access to UI and status is showing connection error( i am trying to connecting via my public key like eg:http://51.20.43.244:8000/) . i ran these steps to install and connect dgraph :ecurity Groups:
Add inbound rules:
8000 (Ratel UI): For public access.
8080 (Dgraph Alpha HTTP): For public API access.
9080 (Dgraph Alpha gRPC): For gRPC communication.
22 (SSH): For server management.
Outbound rules are open by default; no changes required.
Key Pair:
Create or select an existing key pair for SSH access.

Step 2: Connect to the Instance

SSH into the Instance:

ssh -i "your-key.pem" ubuntu@<public-ip>

Step 3: Update and Install Docker

Update the System:

sudo apt update && sudo apt upgrade -y

Install Docker:

sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker

Add Your User to the Docker Group:

sudo usermod -aG docker ubuntu
Reconnect to apply the Docker group changes:

exit

ssh -i “your-key.pem” ubuntu@

Step 4: Run Dgraph and Ratel with Docker

  1. Pull Dgraph and Ratel Images:

docker pull dgraph/dgraph

docker pull dgraph/ratel

Run Dgraph Zero:

docker run -it -p 5080:5080 -p 6080:6080 --name dgraph-zero dgraph/dgraph dgraph zero

Run Dgraph Alpha:

docker run -it -p 8080:8080 -p 9080:9080 --name dgraph-alpha --link dgraph-zero dgraph/dgraph dgraph alpha --zero dgraph-zero:5080

Run Ratel UI:

docker run -it -p 8000:8000 dgraph/ratel. please i need help with this issue.