6

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
MehrdadEP
  • 1,085
  • 1
  • 14
  • 27

3 Answers3

19

Maybe docker-compose.yml is empty

hamze_z3
  • 351
  • 3
  • 6
7

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

Usman
  • 71
  • 1
  • 1
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
  • 5,208
  • 6
  • 31
  • 67