Code Monkey home page Code Monkey logo

django-gunicorn-nginx-docker's People

Contributors

dependabot[bot] avatar janmalte avatar julioriffel avatar mavnt avatar wattcookly avatar wiamsuri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-gunicorn-nginx-docker's Issues

Doesnt work

Not sure why but the containers are up, but nothing is serving, error: 502 Bad Gateway
nginx/1.14.2

Dealing with static files

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 ^^

for WSL users

If ure starting project by using WSL, u should manually pull the python docker image, please notice this in reqs.txt

Port 8080

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

Allowed hosts issue

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

How to configure it to work with AWS?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.