Skip to content

A boiler plate python production server using elasticsearch, elasticAPM, Docker and flask. Modular code with all the necessary code for setup and easily configurable based on usecase.

License

Notifications You must be signed in to change notification settings

adumrewal/python-production-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Production Server

  • Flask ✅
  • Elasticsearch ✅
  • ElasticAPM ✅
  • MongoDB ✅
  • Redis cache ✅
  • S3 ✅
  • SQL 🚧
  • Docker ✅
  • Logging ✅
  • Config files ✅

Dependencies

  • Flask: 2.0.1
  • Flask_RESTful: 0.3.9
  • Elasticsearch: 7.13.4 (I recommend not using 7.14.x as of now. There are some issues with that version when using with python client.)
  • elastic_apm: 6.4.0
  • ecs_logging: 1.0.1
  • blinker: 1.4 (indirect import. pip install this incase you face any issues with elasticapm dependencies)

How to run

Raw flask server

pip install requirements.txt
python run.py

Docker

docker-compose build
docker-compose up

This will start running the server on localhost:5000

Detailed Readme coming soon...

About

A boiler plate python production server using elasticsearch, elasticAPM, Docker and flask. Modular code with all the necessary code for setup and easily configurable based on usecase.

Topics

Resources

License

Stars

Watchers

Forks