Sign in
agent:

DagKnows app setup instructions for docker

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

The DagKnows app. This repo contains a minimal set of compose files for running a DagKnows app anywhere.

  1. 1

    Requirements

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    You will need a server with the following specs: * min 16GB RAM

    * min 100GB disk

    * min 2 CPUs * Ubuntu (20.04+)


    You need to have the following packages on the VM. Most of the Linux distributions have it by default. In not, please install. * git * python (3.10+)


    1
  2. 2

    Setup your Environment (dkapp setup)

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    2
    1. 2.1

      Checkout this dkapp repo.

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
      git clone https://github.com/dagknows/dkapp.git
      copied
      2.1
    2. 2.2

      Install required packages (dkapp setup)

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


      cd dkapp sudo apt update && sudo apt upgrade -y sudo apt-get install -y make make prepare
      copied
      2.2
    3. 2.3

      Restart Docker

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


      sudo systemctl restart docker
      copied
      2.3
  3. 3

    Setup .env params

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    In your .env file set values for the last 7 params:


    DAGKNOWS_URL=<YOUR_PUBLIC_IP_HERE>

    MAIL_DEFAULT_SENDER=info@dagknows.com

    MAIL_USERNAME=

    MAIL_SERVER=

    MAIL_PASSWORD=

    OPENAI_API_KEY=

    OPENAI_ORG_ID=

    3
  4. 4

    Encrypt the file containing all the secrets

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    The following command encrypts all the secrets such as passwords and API keys kept in .env file using gpg utility. It will ask you for a passphrase during encryption and decryption.

    make encrypt
    copied
    4
  5. 5

    Run your DB

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    make updb dblogs
    copied
    5
  6. 6

    Run you App

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


    make up logs
    copied
    6