Add invoiceshelf billing software #8

Manually merged
ryan merged 7 commits from drgrove/distrust-stack:crater-app into main 2024-05-30 05:08:59 +00:00
1 changed files with 20 additions and 0 deletions
Showing only changes of commit 6d149d96e5 - Show all commits

View File

@ -69,6 +69,26 @@ module "digitalocean_database_cluster" {
digitalocean_region = data.digitalocean_region.provided.slug digitalocean_region = data.digitalocean_region.provided.slug
} }
# Crater App requires MySQL currently, when it adds PG support we should migrate
#
module "digitalocean_mysql_database_cluster" {
source = "../../terraform_modules/digitalocean_database_cluster"
cluster_name = "distrust-mysql"
db_engine = "mysql"
db_version = "8"
size = "db-s-1vcpu-2gb"
node_count = 1
databases = [{
name = "crater",
create_default_superuser = true,
}]
vpc_id = digitalocean_vpc.main.id
digitalocean_region = data.digitalocean_region.provided.slug
}
locals { locals {
database_host = module.digitalocean_database_cluster.database_cluster.private_host database_host = module.digitalocean_database_cluster.database_cluster.private_host
database_port = module.digitalocean_database_cluster.database_cluster.port database_port = module.digitalocean_database_cluster.database_cluster.port