~/greeter/compose.yaml runs one service, greeter, which answers GREETING, NAME! on port 8080. A teammate edited it by hand and now Compose rejects it. It has three structure errors.
Look at the file with line numbers:
Ask Compose what is wrong:
Open the file in the editor panel, fix the error Compose reports, save, and run docker compose config again. Repeat until it prints the resolved file instead of an error.
| Check | Rule |
|---|---|
| Siblings | image, ports and environment all start in the same column under greeter |
| Lists | every item starts with - |
| One form per block | environment is either all KEY: value or all - KEY=value |
When docker compose config succeeds, start the service and call it:
sh
docker compose up -d
curl -s localhost:8080The expected answer is Hello, platform team!.