mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
Digital Ocean Terraform Patches (#1866)
Added necessary deployment steps. Modified not supported Ubuntu version with the latest LTS option. Co-authored-by: thealice <thealice@wonderland.com>
This commit is contained in:
parent
36c5cd16c7
commit
40d55f4042
2 changed files with 7 additions and 5 deletions
|
@ -12,16 +12,18 @@ The output of this Terraform configuration will be:
|
|||
- Follow the instructions in the [official Terraform documentation](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) for your operating system.
|
||||
|
||||
## How to deploy on DigitalOcean
|
||||
Open your terminal and navigate to the `digitalocean/terraform` folder
|
||||
1. Replace the token value in the provider "digitalocean" block in main.tf with your DigitalOcean API token.
|
||||
2. Run the following commands to initialize Terraform, review the infrastructure changes, and apply them:
|
||||
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.
|
||||
4. Once the deployment is complete, Terraform will output the public IP address of your droplet. You can access your application using this IP address.
|
||||
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.
|
||||
|
||||
## How to deploy on DigitalOcean
|
||||
To delete the resources created by Terraform, run the following command in the terminal:
|
||||
|
|
|
@ -16,7 +16,7 @@ provider "digitalocean" {
|
|||
|
||||
|
||||
resource "digitalocean_droplet" "anything_llm_instance" {
|
||||
image = "ubuntu-22-10-x64"
|
||||
image = "ubuntu-24-04-x64"
|
||||
name = "anything-llm-instance"
|
||||
region = "nyc3"
|
||||
size = "s-2vcpu-2gb"
|
||||
|
|
Loading…
Add table
Reference in a new issue