How to Deploy Planvisage Container App in Linux VM ( Ubuntu) in Azure Cloud using Podman Container Runtime
-
Login to Ubuntu Server using SSH
From command prompt where private key file is copied (pvadminkey.pem)
Eg: ssh -i pvadminkey.pem pvadmin@98.70.75.229
Private Key File Name: pvadminkey.pem
IP Address : 98.70.75.229
User Name : pvadmin
Type 'yes'Now logged in to server using SSH
2. Install Podman (Container Run Time)
Minimum version required : Ubuntu 20.10 and newersudo apt-get update //Update the apt-get to latest
sudo apt-get -y install podman //Install podmanTo check the version of podman installed:
-
Install Podman Compose Pre requisite - Python
Install Python
Install Podman Compose
Error will show if the path is not updated.
Update Path using the following commands:
echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc
source ~/.bashrc
-
Create docker Compose File & and .env file
Create a folder and type nano to open editor
Copy Paste the compose file content to nano editor
Ctrl+ X to save, and provide the file name “docker-compose.yaml”
Do the same for .env file also.
-
Login to azure Container Registry (ACR)
Podman login planvisagedev.azurecr.io
Provide credentials to login to ACR
Run podman compose using following command:
podman-compose up
-
Install nginx in server
sudo apt update
sudo apt install nginxApplication is up now.
-
Configure Nginx ( to access web application using browser)
a. Open config file
b. Add the reverse proxy settings to webapplication running at port 8080
Proxy_pass http://127.0.0.1:8081/;c. Restart nginx server
<strong>sudo systemctl restart nginx</strong>
Application can be accessed using the domain name.