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
@ -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.
|
- 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
|
## How to deploy on DigitalOcean
|
||||||
Open your terminal and navigate to the `digitalocean/terraform` folder
|
Open your terminal and navigate to the `docker` folder
|
||||||
1. Replace the token value in the provider "digitalocean" block in main.tf with your DigitalOcean API token.
|
1. Create a `.env` file by cloning the `.env.example`.
|
||||||
2. Run the following commands to initialize Terraform, review the infrastructure changes, and apply them:
|
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 init
|
||||||
terraform plan
|
terraform plan
|
||||||
terraform apply
|
terraform apply
|
||||||
```
|
```
|
||||||
Confirm the changes by typing yes when prompted.
|
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
|
## How to deploy on DigitalOcean
|
||||||
To delete the resources created by Terraform, run the following command in the terminal:
|
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" {
|
resource "digitalocean_droplet" "anything_llm_instance" {
|
||||||
image = "ubuntu-22-10-x64"
|
image = "ubuntu-24-04-x64"
|
||||||
name = "anything-llm-instance"
|
name = "anything-llm-instance"
|
||||||
region = "nyc3"
|
region = "nyc3"
|
||||||
size = "s-2vcpu-2gb"
|
size = "s-2vcpu-2gb"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user