[Django]-Top level object in './docker-compose.yml' needs to be an object not '<class 'NoneType'>'

63👍

Maybe docker-compose.yml is empty

20👍

Your .yml file must be empty. Try saving the file.

👤Usman

8👍

If you have just created your docker-compose.yml chances are you haven’t saved it and hit docker-compose up.

Save it and try again. It should work fine

👤Ketan

0👍

In case of docker-compose.dcproj project check for all the .yml files and nothing should be empty.

  1. docker-compose.override.yml
  2. docker-compose.yml
👤Hary

0👍

create file docker-compose.yaml
that looks like the below picture and it started working
docker.compose.yaml

0👍

Hit this because I did

docker-compose --file .config/.env.dev up

Instead of

docker-compose --env-file .config/.env.dev up

Leave a comment