Hi guys, I am facing a strange problem here which I do not know how to solve it, I want to dockerized my Django rest framework up with Postgres database, I have set up
the Dockerfile with the following code
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY . /code/
RUN pip install -r requirements.txt
and docker-compose-yml with following code
version: '3'
services:
web:
build: .
command python e_project/manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
db:
image: postgres
and my project root directory looks like this
$ ls
docker-compose-yml
Dockerfile
README.md
requirements.txt
e_project
$ cd e_project
$ ls
__pycache__
e_app
environ.py
e_project
manage.py
so when I run docker-compose up
I am getting this error message in the terminal
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
my docker-compose version is
$ docker-compose --version
docker-compose version 1.24.0, build 0aa59064
my docker version is
$ docker --version
Docker version 18.09.5, build e8ff056
my OS is Linux Ubuntu 18.04 LTS, 64 Bit
please help