MongoDB + Flask + Docker Example of how to integrate these things together To run: sudo docker-compose build sudo docker-compose up You should now be able to see the site at 0.0.0.0:5000 References A MongoDB Driven Flask Application in Docker from Scratch