Docker-compose is failing

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
For the above question, when I check to verify the link task is failing though the link is correct.

Hi @poorna
Kindly check the full solution below :

services:
 db:
   environment:
     POSTGRES_PASSWORD: mysecretpassword
   image: postgres
 wordpress:
   image: wordpress
   links:
   - db
   ports:
   - 8085:80
version: '3.0'

Also, check my try below:

Sometimes the correct answer is located under path /var/answers/ as you can find the above answer inside it.

We do sorry for any inconvenience.

I hope this helps!