Create a docker-compose.yml file under the path /root/wordpress. Once done, run a docker-compose up.
The compose file should have exact specification of the wordpress and db container
** I did create a file like below please tell why word press is not starting
below is my docker-compose.yml