23 lines
462 B
Terraform
23 lines
462 B
Terraform
|
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" {
|
||
|
source = "git::https://code.techinc.nl/grey/terraform-nginx.git"
|
||
|
configs = concat(
|
||
|
module.minio.nginx_files
|
||
|
)
|
||
|
networks = [
|
||
|
docker_network.loadbalancer,
|
||
|
]
|
||
|
replicas = 1
|
||
|
}
|