IAC/service.portainer.tf

26 lines
772 B
Terraform
Raw Normal View History

2025-01-16 18:38:54 +00:00
module "portainer" {
#source = "github.com/matthewbaggett/terraform_modules//products/portainer/ui"
source = "./lib/grey.ooo/products/portainer/ui"
should_mount_local_docker_socket = true
placement_constraints = ["node.role == manager"]
networks = [module.traefik.docker_network]
traefik = {
domain = "portainer.${var.base_domain}",
port = 9000,
ssl = true,
non-ssl = true
basic-auth-users = ["techinc"]
}
}
output "portainer" {
value = {
endpoint = module.portainer.endpoint
credentials = module.portainer.portainer.credentials
socket-proxy = {
endpoint = module.portainer.socket_proxy_endpoint
}
}
}