Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
DEPLOY.md 2.34 KiB

How to deploy a private AnythingLLM instance on DigitalOcean using Terraform

With a DigitalOcean account, you can easily deploy a private AnythingLLM instance using Terraform. This will create a URL that you can access from any browser over HTTP (HTTPS not supported). This single instance will run on your own keys, and they will not be exposed. However, if you want your instance to be protected, it is highly recommended that you set a password one setup is complete.

The output of this Terraform configuration will be:

  • 1 DigitalOcean Droplet
  • An IP address to access your application

Requirements

  • An DigitalOcean account with billing information
  • Terraform installed on your local machine

How to deploy on DigitalOcean

Open your terminal and navigate to the docker folder

  1. Create a .env file by cloning the .env.example.
  2. Navigate to digitalocean/terraform folder.
  3. Replace the token value in the provider "digitalocean" block in main.tf with your DigitalOcean API token.
  4. Run the following commands to initialize Terraform, review the infrastructure changes, and apply them:
    terraform init  
    terraform plan  
    terraform apply  

Confirm the changes by typing yes when prompted. 5. Once the deployment is complete, Terraform will output the public IP address of your droplet. You can access your application using this IP address.