location /logapp/static/ {
alias /static/;
}
location /logapp/media/ {
alias /media/;
}
with this config my static files dont server and nginx container says get 404 error and can not fine static file . please help me for finding solution .
my debug mode is false .
Are you running your nginx and Django application in the same or different containers?
Your nginx.conf file has:
Have you set up your application to generate static URLs as /logapp/static/? (Your STATIC_URL setting is /static/ - that would be the url being created for references by default, not/logapp/static/.)
Ok, if you’re running them in different containers, then you need to create a data volume in common between those two containers. Then, when you run collectstatic, Django will copy those files to the data volume for nginx to reference.