This repository has been archived on 2024-11-12. You can view files and clone it, but cannot push or open issues or pull requests.
iac/nginx.tf
Matthew Baggett 78c0bf2a6b
Some checks failed
Trunk Cache / Trunk Cache (push) Failing after 2s
Trunk Check / Trunk Check Runner (push) Failing after 1s
Trunk Upgrade / Upgrade Trunk (push) Failing after 1s
fix linting issues
2024-06-28 20:08:55 +02:00

24 lines
550 B
HCL

resource "docker_network" "loadbalancer" {
name = "loadbalancer"
driver = "overlay"
attachable = true
ipam_driver = "default"
ipam_config {
aux_address = {}
subnet = "172.16.0.0/16"
gateway = "172.16.0.1"
}
}
module "nginx" {
# tflint-ignore: terraform_module_pinned_source
source = "git::https://code.techinc.nl/grey/terraform-nginx.git"
configs = concat(
module.minio.nginx_files,
module.vigil_nginx_config.files,
)
networks = [
docker_network.loadbalancer,
]
replicas = 1
}