hit-counter icon indicating copy to clipboard operation
hit-counter copied to clipboard

Add dockerfile with ngxin+uwsgi, volumes and optional S3 storage

Open fluential opened this issue 5 years ago • 2 comments

Adressing all comments from #13

  • Removed supervisord.ini file as this comes by default from the original image https://github.com/tiangolo/uwsgi-nginx-docker/blob/master/docker-images/supervisord-alpine.ini and we don't need to modify it as I originally thought

This implements

  • S3 persistent storage so its possible to safely start and stop container, it does restore on startup + backup after 30s delay, according to a schedule
  • uwsgi+nginx for much better performance

For yet better performance consider using ASGI frameworks instead of WSGI. If you still need more +400% performance for this uwsgi+nginx flask app consider using this image https://github.com/tiangolo/meinheld-gunicorn-flask-docker 😎

fluential avatar Jul 14 '20 10:07 fluential

Thanks for update, to be honest I don't want to spend more time on this, I will not be submitting more changes. I'll leave it with you.

fluential avatar Jul 17 '20 06:07 fluential

That's ok @fluential, thank you for your contribution. I will try to look into the questions/actions I have added and get this in when they're answered.

brentvollebregt avatar Jul 18 '20 09:07 brentvollebregt