'Docker Tutorial Part 8 compose

I'm doing this docker tutorial, but I keep encounter an error: Image of CMD.

and when i check my file: Image of Compose-file

does anyone what i did wrong?

I am main follow the instructions on https://docs.docker.com/get-started/08_using_compose/



Solution 1:[1]

mysql should be on the level of app

indentation matters here..

you are adding mysql as sub comoponent of app service , but it should be on same level of app , as mysql is also one service

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ravindra Bagale