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

Docker compose environment uses django development server #326

Closed
jkpr opened this issue Jul 17, 2020 · 4 comments
Closed

Docker compose environment uses django development server #326

jkpr opened this issue Jul 17, 2020 · 4 comments

Comments

@jkpr
Copy link

jkpr commented Jul 17, 2020

At our company we are thinking of running an instance of wooey to make our python scripts available to others. I noticed that it is the django development server running. So far so good, but I'm wondering how much it would take to stress out the server.

Could I recommend gunicorn?
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/gunicorn/

@Chris7
Copy link
Member

Chris7 commented Jul 17, 2020

Sure. I wouldn't want the default to use gunicorn though, as the docker-compose is setup to really be a dev environment (but you can easily modify it to suit a more prod setup).

@jkpr
Copy link
Author

jkpr commented Jul 17, 2020

Do you want docker-compose to be just for a dev setup? I was attracted to this project as a way to setup a quick/easy website for others to use.

Are you interested in something like this: https://docs.docker.com/compose/extends/#multiple-compose-files
and having an override file such as docker-compose.prod.yml ?

@Chris7
Copy link
Member

Chris7 commented Aug 23, 2020

Wooey's docker-compose was really meant for a dev setup. It is pretty far from a prod setup that gunicorn wouldn't address, like having a persistant database that isn't postgres + volume.

If you want to submit a PR with your ideas, then more than willing to take a look at it, but I'm not sure how comfortable I am with users having a "production" docker-compose file that is missing so many other parts of a production deployment.

@Chris7
Copy link
Member

Chris7 commented Aug 23, 2020

Looking at #321, one thing I do think would be very useful is a simple docker-compose text users can copy that uses the dockerhub image and doesn't require cloning this repo.

@Chris7 Chris7 closed this as completed Aug 3, 2022
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

2 participants