project: Running the App

Tags kubernetes
Hard Prerequisites
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content.
  • K8S: Manual App Deployment – Project Overview
  • Soft Prerequisites
  • K8S: Python App
  • Let’s run our Docker Compose production environment!

    On your EC2 instance, pull the repository changes from GitHub:

    # pulls the changes
    cd /home/ubuntu/umuzi-k8s
    git pull
    

    Let’s build the containers and get them up and running:

    # builds the containers
    docker-compose build
    
    # runs the containers
    # -d will run everything on the background
    docker-compose up -d
    

    To see if everything is running nicely, take a look at the Docker Compose logs:

    # verifies the logs
    docker-compose logs
    

    Now you should be able to access the Python app via the https://your-domain address.


    RAW CONTENT URL