IAC/service.printers.tf

38 lines
1.3 KiB
Terraform
Raw Normal View History

2025-01-16 18:38:54 +00:00
module "s1" {
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
source = "./lib/grey.ooo/docker/service"
stack_name = "printers"
service_name = "s1proxy"
image = "alpine/socat:latest"
command = ["socat", "tcp-listen:80,fork,reuseaddr", "tcp-connect:s1.prin.ti:80"]
traefik = merge(var.treafik_defaults, {
domain = "s1.${var.base_domain}"
port = 80
basic-auth-users = ["techinc"]
})
converge_enable = false
placement_constraints = ["node.hostname == california"]
}
module "label_printer" {
//source = "github.com/matthewbaggett/terraform_modules//docker/service"
source = "./lib/grey.ooo/docker/service"
stack_name = "printers"
service_name = "labelprinter"
image = "alpine/socat:latest"
command = ["socat", "tcp-listen:80,fork,reuseaddr", "tcp-connect:labelprinter.ti:80"]
traefik = merge(var.treafik_defaults, {
domain = "labelprinter.${var.base_domain}"
port = 80
basic-auth-users = ["techinc"]
})
converge_enable = false
placement_constraints = ["node.hostname == california"]
}
output "printers" {
value = {
s1 = module.s1.endpoint
label_printer = module.label_printer.endpoint
}
}