Docker: nginx and uwsgi support, refactoring