Deploying small web applications can take up more time than creating the application itself, for this reason I've put together this small guide to document how I go about deploying applications. I've used this method for things like small business sites, demo sites and application prototypes. Although we will go through a Python Flask application the same method would apply to other micro web apps. The final running application will have a few moving parts, here is how it will handle two incoming requests: Our final implementation will comprise three Docker containers: - Our frontend reverse proxy server - nginx - Our WSGI server Gunicorn and application server Flask - An example ancillary service - a redis cache To follow along grab the code from https://github.com/hardbyte/python-app-deploy In this post we’ll create a small standalone flask application that uses redis for a cache. The same deployment method works for applications that require services like mem...
Ramblings about developing software. May contain traces of Java, Python, Scala, Typescript.