Skip to content

Flask uWSGI (and cx_oracle) behind Nginx on Docker for API development projects

Notifications You must be signed in to change notification settings

ihayhurst/SunflowerSpikeLake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker containers as template for flask application / restful API

Ian M. Hayhurst 2020 09 25

The rest of this readme is the generic development of a python flask api for an database (oracle here) in docker containers

Python 3.8.6 Flask with uWSGI Nginx in Docker. (using docker-compose) Idea is to reuse base for different apps i.e. For API dev infront of Oracledb or similar

  • Database module in python (cx_oracle in here as folk seemed keen on it)
  • Redis added but not tested with placeholder app
  • Hot code reload the flask/app is copied into the container but then mounted over with volume from host filesystem, uWSGI will reload if touch_to_reload file is 'touched'
  • Blueprint structure added (website, api separation)

TODO

  • add celery and code task in demo app
  • add AJAX style checking with redis if task complete

Drawn from the inspirational articles:

About

Flask uWSGI (and cx_oracle) behind Nginx on Docker for API development projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published