1👍
As you copied the source folder(happy_traveller
) in your docker
file, you don’t need to run the cd
command again, so the docker-compose
file would look like this:
version: "2.12.2"
services:
web:
tty: true
build:
dockerfile: Dockerfile
context: .
command: bash -c "python manage.py runserver 0.0.0.0:8000 "
ports:
- 8000:8000
restart: always
Source:stackexchange.com