2024-06-21 16:02:42 +00:00
|
|
|
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" {
|
2024-06-28 18:08:55 +00:00
|
|
|
# tflint-ignore: terraform_module_pinned_source
|
2024-06-21 16:02:42 +00:00
|
|
|
source = "git::https://code.techinc.nl/grey/terraform-nginx.git"
|
|
|
|
configs = concat(
|
2024-06-28 15:53:53 +00:00
|
|
|
module.minio.nginx_files,
|
|
|
|
module.vigil_nginx_config.files,
|
2024-07-03 16:26:44 +00:00
|
|
|
module.videobucket_nginx_config.files,
|
2024-07-04 00:04:32 +00:00
|
|
|
//module.netbox_nginx_config.files,
|
2024-07-28 15:02:22 +00:00
|
|
|
module.orcaslicer_nginx_config.files,
|
2024-06-21 16:02:42 +00:00
|
|
|
)
|
|
|
|
networks = [
|
|
|
|
docker_network.loadbalancer,
|
|
|
|
]
|
2024-07-04 00:04:32 +00:00
|
|
|
replicas = 2
|
2024-06-21 16:02:42 +00:00
|
|
|
}
|