Prerequisites Linux Machine Docker installed. Docker compose installed. Setting up Docker Compose If you want to make your code more portable and share the same version of RabbitMQ with your developer colleagues, I highly recommend using Docker. Create a docker-compose.yml
Docker is very popular and easy to use container management that can speed up your deployment of your application with few lines of configuration. I always prefer docker-compose.yml to deploy and manage multiple containers of the application. For basic example
Here we are continuing our previous post. In this post we would deploy our flask application with with nginx using gunicorn. Create on wsgi.py file Create a wsgi.py file in your root project directory, which will be used by gunicorn.
Prerequsites: Your Flask project/application ready. Linux Server Docker Docker-composer Flask Application Please prepare your flask application. Your application should be runnable on your local host. Your hello world application you can follow this link. Docker file for flask application Create
Prerequisite: Linux Machine. Am assuming you have successfully install docker and docker-composer. Follow instruction to install docker and for docker-composer. docker-compose.yml file. Create a file called docker-compose.yml in your project directory and paste the following: .env file Create a file called .evn
This is document assuming you have already up your mongo docker container and its working fine on your docker container host machine. Let suppose your docker container host machine ip address is x.x.x.1. You can check your docker container up