I am trying to develop a web application using
I made a
DockerFile and a
docker-compose.yml file as below to check the code in the development environment.
Even though I'm using the
runserver command in the file, when I start the
container and access the localhost, the
CSS for the admin page isn't working.
How should I change the codes to make it work?
Here are the codes:
FROM python:3.8.3-alpine WORKDIR /usr/src/app ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 RUN pip install --upgrade pip COPY ./requirements.txt . RUN pip install -r requirements.txt COPY . .
version: '3.7' services: web: build: ./django_project command: python manage.py runserver 0.0.0.0:8000 volumes: - ./django_project/:/usr/src/app/ ports: - 8000:8000
docker desktop: 4.1.1