Make int and ext infrastructure network
This commit is contained in:
@@ -10,6 +10,13 @@ locals {
|
||||
volume_host = "${module.system_globals.volume_host}"
|
||||
}
|
||||
|
||||
module "infrastructure_ext" {
|
||||
source = "./modules/01-networking/network-service"
|
||||
name = "infrastructure_ext"
|
||||
driver = "host"
|
||||
attachable = true
|
||||
}
|
||||
|
||||
module "caddy" {
|
||||
source = "./modules/01-networking/caddy-service"
|
||||
volume_path = "${local.volume_host}"
|
||||
@@ -22,5 +29,8 @@ module "caddy" {
|
||||
tls_email = "jjvijgen@gmail.com"
|
||||
container_name = "caddy"
|
||||
service_definitions = module.services.service_definitions
|
||||
networks = [module.services.infrastructure.name]
|
||||
networks = [
|
||||
module.infrastructure_ext.name,
|
||||
module.services.infrastructure_int.name
|
||||
]
|
||||
}
|
||||
|
||||
+11
-10
@@ -8,51 +8,52 @@ module "system_globals" {
|
||||
source = "${local.module_dir}/00-globals/system"
|
||||
}
|
||||
|
||||
module "infrastructure" {
|
||||
module "infrastructure_int" {
|
||||
source = "./modules/01-networking/network-service"
|
||||
name = "infrastructure"
|
||||
driver = "host"
|
||||
name = "infrastructure_int"
|
||||
subnet = "10.100.0.0/24"
|
||||
driver = "bridge"
|
||||
attachable = true
|
||||
}
|
||||
|
||||
module "authentik" {
|
||||
source = "${local.module_dir}/30-services-software/authentik-service"
|
||||
volume_path = "${local.root_volume}/authentik"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "traccar" {
|
||||
source = "${local.module_dir}/30-services-software/traccar-service"
|
||||
volume_path = "${local.root_volume}/traccar"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "tandoor" {
|
||||
source = "${local.module_dir}/30-services-software/tandoor-service"
|
||||
volume_path = "${local.root_volume}/tandoor"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "jellyfin" {
|
||||
source = "${local.module_dir}/20-services-entertainment/jellyfin-service"
|
||||
volume_path = "${local.root_volume}/jellyfin"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "qbittorrent" {
|
||||
source = "${local.module_dir}/30-services-software/qbittorrent-service"
|
||||
volume_path = "${local.root_volume}/qbittorrent"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "coder" {
|
||||
source = "${local.module_dir}/30-services-software/coder-service"
|
||||
volume_path = "${local.root_volume}/coder"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
module "calibre" {
|
||||
source = "${local.module_dir}/20-services-entertainment/calibre-service"
|
||||
volume_path = "${local.root_volume}/calibre"
|
||||
networks = [module.infrastructure.name]
|
||||
networks = [module.infrastructure_int.name]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user