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
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
Maybe docker-compose.yml is empty
Your .yml file must be empty. Try saving the file.
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
In case of docker-compose.dcproj
project check for all the .yml
files and nothing should be empty.
Hit this because I did
docker-compose --file .config/.env.dev up
Instead of
docker-compose --env-file .config/.env.dev up
© 2022 - 2024 — McMap. All rights reserved.
docker-compose.yml
looks like? – Blakeneydocker-compose.yml
seems to have indent problems. I've edited your question and fix it! use the version I've edited and post the results – Balenciaga