devops/quadlets/modules/plane/space/main.tf

60 lines
1.1 KiB
HCL

variable "wait_on" {
type = any
description = "Resources to wait on"
default = true
}
variable "server_ip" {
type = string
}
variable "ssh_private_key_path" {
type = string
}
variable "server_domain" {
type = string
}
module "space" {
source = "../../quadlet-app"
wait_on = var.wait_on
server_ip = var.server_ip
ssh_private_key_path = var.ssh_private_key_path
restart_policy = "never"
app_name = "plane-space"
image = "docker.io/makeplane/plane-space:v1.0.0"
ports = ["3013:3000"]
environment = {
# API settings
NEXT_PUBLIC_API_BASE_URL = "https://plane.${var.server_domain}/api"
# Web settings
NEXT_PUBLIC_WEB_URL = "https://plane.${var.server_domain}/spaces"
# Environment
NODE_ENV = "production"
}
haproxy_services = [
{
name = "plane-space"
domain = "plane.${var.server_domain}/spaces/"
port = "3013"
host = "127.0.0.1"
tls = false
}
]
}
output "app_urls" {
value = module.space.app_urls
}
output "installed" {
value = true
depends_on = [module.space.installed]
}