Deployment of a Flask app

Job ID: 30835301

Budget: $10 – $30 USD

- App is Flask + React
- Current status: Docker file and docker-compose is working with uWSGI and nginx but without support for websockets.
- However there is an error with the nginx configs
- Now the app uses Flask-SocketIO
- Its documentation is given here for production deployment: https://flask-socketio.readthedocs.io/en/latest/deployment.html#gunicorn-web-server
- It has limited support for uWSGI so I don’t want to use it (uWSGI) anymore
- I want docker containers as follows:
--- Container 1: Flask app running Gunicorn with websocket configuration
--- Container 2: nginx with both http and https configs
--- Container 3: certbot container for auto renewal of SSL certificate (this is already present and working, only need to make sure that it’s integrated with the nginx container).
All traffic should be working as expected.
- I need the above in a tutorial form, so that I can understand the whole process. It will help me to make changes as required when the development progresses.
- It’s difficult for us to share the full source code, suggested workflow is:
--- I can provide you with the docker files and nginx configuration files etc.
--- we can do a desktop share along with a video call to carry out the task
Related categories: Python Nginx Socket IO Docker Flask