Hot answers tagged

5 votes

What's the benefit of using Nginx to serve a Flask API on AWS?

Unless you are using the AWS API Gateway, you'll still need some way of "serving" your Flask API. You will also need to provision an EC2 instance and run something to serve your API. Instead of ...
user avatar
2 votes

hello world with flask and redis using docker networking

Yes, it's absolutely reasonable and this is how real apps work. This is the microservice approach which allows to independently scale instances of a service and a DB. What you have to do is to run ...
user avatar
  • 181
1 vote

Docker container host machine communication

You can run your flask container using the host networking mode. This way docker won't isolate the container and will run it the same network namespace as the host, and you container will be able to ...
user avatar
  • 146
1 vote
Accepted

Is it a bad idea to use a web app including nginx, gunicorn and flask in a single docker container?

While this is possible it is not a best practice. Whenever possible, containers should contain a single process. The reasoning for this is: It fosters a modular design where you can more easily ...
user avatar
1 vote

Where can I find a Dockerfile + required files to create a Flask/MySQL forum/webapp with users?

This question seems to be in two parts: How to deploy a flask+database app in Docker? Is there a non-trivial application to use as example? The second part is difficult to answer, it will depend on ...
user avatar
  • 3,058

Only top scored, non community-wiki answers of a minimum length are eligible