Lab issue on docker Compose

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
Screen Shot 2020-05-13 at 7.36.14 PM

Ok Change my docker-compose.yml
db:
image: postgres
environment:
- POSTGRES_PASSWORD=mysecretpassword
wordpress:
image: wordpress
ports:
- 8085:80
links:
- db

After i run the docker-compose up
Screen Shot 2020-05-13 at 8.32.21 PM