Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

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

I'm using python 3.8, Docker version 19.03.13, build 4484c46d9d 3.8

version: '3.8'
services:
  web:
    build: .
    command: python /code/manage.py runserver 0.0.0.0:8000
  volumes:
    - .:/code
  ports:
    - 8000:8000
over 4 years ago · Santiago Trujillo
5 answers
Answer question

0

Maybe docker-compose.yml is empty

over 4 years ago · Santiago Trujillo Report

0

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

over 4 years ago · Santiago Trujillo Report

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
over 4 years ago · Santiago Trujillo Report

0

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

over 4 years ago · Santiago Trujillo Report

0

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

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!