38 lines
No EOL
1.3 KiB
HCL
38 lines
No EOL
1.3 KiB
HCL
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
|
|
}
|
|
} |