How to Deploy Planvisage Container App in Linux VM ( Ubuntu) in Azure Cloud using Podman Container Runtime

  1. 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

    img
    Type 'yes'

    img

    Now logged in to server using SSH

    img 2. Install Podman (Container Run Time)

    img
    Minimum version required : Ubuntu 20.10 and newer

    sudo apt-get update //Update the apt-get to latest
    sudo apt-get -y install podman //Install podman

    To check the version of podman installed:

    img

  2. Install Podman Compose Pre requisite - Python

    Install Python

    img

    Install Podman Compose

    img

    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

    img

  3. Create docker Compose File & and .env file

    Create a folder and type nano to open editor

    img

    Copy Paste the compose file content to nano editor

    img

    Ctrl+ X to save, and provide the file name “docker-compose.yaml”

    img

    Do the same for .env file also.

  4. 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

  5. Install nginx in server

    sudo apt update
    sudo apt install nginx

    img

    Application is up now.

  6. Configure Nginx ( to access web application using browser)

    a. Open config file

    img

    b. Add the reverse proxy settings to webapplication running at port 8080
    Proxy_pass http://127.0.0.1:8081/;

    img

    c. Restart nginx server

     <strong>sudo systemctl restart nginx</strong>
    

    img

    Application can be accessed using the domain name.