How to create Docker Compose file | How to use Docker Compose

Install Docker compose

Check Docker compose version

Create docker compose file

Create directory name dockercomposefile

Create a file

Edit the docker-compose.yml

For below content

Check the validity of file by command docker-compose config

Run docker-compose.yml file by commnd

Now see container run

Check with browser localhost:9090