ERROR compose.yml: services.databases Additional property web is not allowed

Hi everyone,
I’m newbie to docker subject. while running the docker compose up , I have been encountering the following error.
This is my yaml file.

version: 3

services:
databases:
image: mysql
ports:
- “3306:3306”
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=user
- MYSQL__PASSWORD=password
- MYSQL_DATABASE=demodb
web:
image: nginx

After running docker compose up command , I’m getting this error,
compose.yml: services.databases Additional property web is not allowed.

can somebody help me out?
Thanks in advance.

Hello newbie, first step in becoming a pro is using the forum correctly :wink:

Please use 3 backticks before and after code/config (or select and use </> icon) to make it more readable. In yaml every space matters, so keeping correct spacing in post for code/config is important.