I am doing Docker-Compose Lab exercises. Everything is fine except on the last question of
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
All my cases are passed except the Syntax error
- Syntax Check for the docker-compose.yml FAILED
- Wordpress running on the correct HostPort? PASSED
- WordPress linked to db container PASSED
- db container running with env variable POSTGRES_PASSWORD? PASSED
I have tried so many times removing all unnecessary spaces and everything. Can someone please help why this is happening, when the docker is able to read the YAML file then why the Test lab shows the syntax as not right?
My latest file is like this: