This is really helpful.

Thank you, Marcus.

From: Christie, Marcus Aaron<mailto:[email protected]>
Sent: Wednesday, November 4, 2020 6:19 PM
To: Narvekar, Bhakti Sunil<mailto:[email protected]>
Cc: [email protected]<mailto:[email protected]>; Ranawaka, Isuru 
Janith<mailto:[email protected]>; Isuru Ranawaka<mailto:[email protected]>
Subject: Re: Regarding dockerization of Custos Admin Portal

Hi Bhakti,

You might take a look at the airavata-django-portal Dockerfile [1]

This is really only used for development. It runs the dev server which isn't 
appropriate for production. But it's a start.

For production you probably want to look at using Docker with nginx and a wsgi 
server like Gunicorn [2] or uWSGI [3].

Might want to also think about how to handle Django's database. You can use 
MariaDB or some other database server. I think you are using a sqlite database 
file. That may be fine but you'll probably want to mount a volume to hold the 
file so it lives outside the container.

I hope that helps. Let me know if you have any questions.

Thanks,

Marcus


[1] https://github.com/apache/airavata-django-portal/blob/master/Dockerfile
[2] https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/gunicorn/
[3] https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/uwsgi/




On Nov 4, 2020, at 11:09 AM, Narvekar, Bhakti Sunil 
<[email protected]<mailto:[email protected]>> wrote:

Hello,

We are trying to dockerize the Custos Admin Portal which is implemented using 
Django and Vue.js. It would be great if anyone could give any suggestions on 
this.


Sincerely,
Bhakti Narvekar


Reply via email to