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.