wiamsuri / django-gunicorn-nginx-docker Goto Github PK
View Code? Open in Web Editor NEWReady-To-Deploy Django application with docker compose
License: MIT License
Ready-To-Deploy Django application with docker compose
License: MIT License
Not sure why but the containers are up, but nothing is serving, error: 502 Bad Gateway
nginx/1.14.2
Hello,
my port 80 ist allready with another app linked. Now i change in docker.compose.yml ports: - "8080:8080" but when i make on host curl localhost:8080 then i get: curl: (56) Recv failure: Connection reset by peer
docker ps show me:
f416c908f272 nginx:1.17 "nginx -g 'daemon of…" 17 minutes ago Up 17 minutes 80/tcp, 0.0.0.0:8080->8080/tcp ngx
8fa958d8cc3c django-gunicorn-nginx-docker_app "gunicorn --workers=…" 18 minutes ago Up 18 minutes 0.0.0.0:8000->8000/tcp django-gunicorn
If ure starting project by using WSL, u should manually pull the python docker image, please notice this in reqs.txt
How can I check logs from my django app inside the docker image?
I managed to run the local server successfully with docker following by your instructions. It would be really helpful for everyone if you write more steps to deploy this on live env such as aws eks or google kubernetes engine.
First , thank you for the repo, really good material.
I imported my repository to replace the app one, built and run the docker, but the static files are not served, so no css in admin, and no personal css/scripts
I think I should add a location in the default.conf of nginx, but i really don't know how to automatically let the static folder be desserved
My app is like this:
app/
├─ static/
│ ├─ admin/
│ . . . ├─ css and all
├─ media/
What's bizarre is that the media folder is deserved, i can see my images and add them but everything in static return a 404
I tested with and without collectstatic, same result
If you have a hint on what to do i would be happy to hear it, because i'm lost on this one ^^
Hey, thank you for creating this and hopefully this comes across your rader. Currently dealing with an ALLOWED_HOSTS issue, Using the wildcard or the ip address in the array gives same response error
Invalid HTTP_HOST header: 'ipaddress'. You may need to add 'ipaddress' to ALLOWED_HOSTS.
Any ideas where this might be getting overwritten, currently setting this in the settings.py file
ALLOWED_HOSTS = ['*']
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.