Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying docker image with Nginx #62

Open
kleysonr opened this issue Feb 28, 2021 · 2 comments
Open

Deploying docker image with Nginx #62

kleysonr opened this issue Feb 28, 2021 · 2 comments

Comments

@kleysonr
Copy link

The Gunicorn documentation says to have an Nginx in front of the Gunicorn.

How to change the uvicorn-gunicorn-docker to add also the Nginx to handle the requests ?

@mawoka-myblock
Copy link

mawoka-myblock commented Aug 17, 2021

Never expose any container directly to the internet. You should use a Reverse Proxy. That's also what they mean in the docs,

EDIT:
I meant that you shouldn't expose any containers which aren't made for being exposed.

@NargiT
Copy link

NargiT commented Nov 16, 2021

if you have docker you can use another container to act as a proxy.
in kubernetes with an ingress, in docker compose with another another docker (apache or nginx) will do this job if you want to expose it outside.

But you should not stack layer inside a docker container since it's suppose to be elastic. with an nginx inside you are no more elastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants