Detail, this application works perfectly on my local machine, but when I run it through the Docker container, the static files do not work. Below are details of my project:
Logs docker container
services: app: build: . restart: always command: python manage.py runserver 0.0.0.0:9000 ports: - "9000:9000" volumes: - ./app:/code
FROM python:3.8 WORKDIR /code COPY requirements.txt /code RUN pip install --no-cache-dir -r requirements.txt COPY ./app /code
I assigned permission 755 in the static files directory, I changed the ports in docker compose, updated the python/django version and nothing solved it…
Can anyone explain to me what could be going on?