Closed SimplifyOrg closed 1 year ago
Differences are on our configurations
1- requirements.txt :
Django==4.0.5
djangorestframework==3.13.1
mysqlclient==2.1.0
django-mysql==4.7.0
django-cors-headers==3.13.0
pika==1.2.1
2- Dockerfile :
FROM python:3.9
ENV PYTHONUNBUFFERED 1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY . /app
CMD python manage.py runserver 0.0.0.0:8000
3- docker-compose.yml :
version: '3.9'
services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
volumes:
- .:/app
4- command : docker-compose up
Additional environment details: Windows 10
The Python version of Compose is reaching EOL in a few months, could you please give a try to the Compose V2 version and let us know if you still have the issue?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm closing this issue as obsolete: Docker Compose V1 has reached end-of-life and we are not accepting any more changes. Please try and reproduce your issue with Compose V2 and create a new issue or PR with the relevant Compose V2 information.
I am trying to run hello world Django app inside docker. For this I am using Docker-compose and Dockerfile (file contents below). However, when I try to create a new Django project using docker-compose run I get this error (full error log below):
Steps to reproduce the issue:
Contents of docker-compose.yml
docker-compose run web django-admin startproject airfarms .
Describe the results you received: I docker-compose seems to look for C:\Users\compose_spec.json, which it is not present on my computer.
After running
docker-compose run web django-admin startproject airfarms .
I get following error log:Describe the results you expected: I expected
docker-compose run web django-admin startproject airfarms .
to successfully create a Django project inside the docker container.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker compose version
:Output of
docker info
:Additional environment details: Windows 11