How to install docker-ce and docker compose

how to Install and run docker-ce and docker-compose packages on App Server 3

You should try searching the web to find the answer rather than just asking somebody here to give it to you.

Already tried but web answers are not executing in this CLI.

Refer to the documentation on docker.com:
Install Docker Engine on CentOS | Docker Docs

And then grab the latest docker-compose from GitHub:
Releases ยท docker/compose (github.com)