docker compose : top level object must be mapping


Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.

Example code block:

```
echo "I am a code."
echo "An athletic one, and I wanna run."
```

You can also search for “must be a mapping” on the forum. Ther was recent bug in compose

Try using key-value pairs (mapping) in the envionment section as well.