-
Notifications
You must be signed in to change notification settings - Fork 1
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
Run OCL API using gunicorn #897
Comments
We need to prioritize this as it affects performance. |
According to docs dev server negates reusing DB connections, see https://docs.djangoproject.com/en/3.2/ref/databases/#caveats |
OpenConceptLab/ocl_issues#897 Run OCL API using gunicorn
This reverts commit dbeff0d.
…orn"" This reverts commit a7e9392.
Done! As part of the change I based the image on alpine (reduced size from ~450 MBs to ~120 MBs) and made it a two step build (no build time dependencies in runtime image). Also running not as root, but a regular user for safety. It does not use nginx at this point. We may decide to add nginx in front when we actually need caching/static content serving. |
OCL API should use gunicorn and nginx for production deployments.
See https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/
The text was updated successfully, but these errors were encountered: