turn off dnscrypt-proxy, client now runs on the Router
Diff
dnscrypt-proxy.tf | 29 -----------------------------
pihole.tf | 54 ------------------------------------------------------
rss-bridge.tf | 2 +-
media/emby.tf | 4 ----
media/radarr.tf | 4 ----
5 files changed, 1 insertion(+), 92 deletions(-)
@@ -1,29 +1,0 @@
module "dnscrypt" {
name = "dnscrypt-proxy"
source = "modules/container"
image = "mattbodholdt/dnscrypt-proxy"
restart = "always"
networks_advanced = [{
name = "dns"
aliases = ["dnscrypt", "dnscrypt-proxy"]
ipv4_address = "172.30.0.2"
}]
dns = ["127.0.0.1"]
}
resource "docker_network" "dns" {
name = "dns"
internal = false
ipam_config {
subnet = "172.30.0.0/29"
gateway = "172.30.0.1"
}
}
@@ -1,54 +1,0 @@
module "pihole" {
name = "pihole"
source = "modules/container"
web {
expose = true
port = "80"
host = "dns.in.${var.root-domain}"
}
restart = "always"
image = "pihole/pihole"
ports = [{
internal = "53"
external = "53"
ip = "192.168.1.111"
protocol = "udp"
}]
env = [
"ServerIP=192.168.1.111",
"WEBPASSWORD=${data.pass_password.pihole_password.password}",
"DNS1=172.30.0.2",
"DNS2=no",
"VIRTUAL_HOST=dns.in.${var.root-domain}",
]
volumes = [
{
host_path = "/mnt/xwing/config/pihole"
container_path = "/etc/pihole"
},
{
host_path = "/mnt/xwing/config/pihole-dnsmasq.d"
container_path = "/etc/dnsmasq.d"
},
]
networks_advanced = [{
name = "dns"
},
{
name = "traefik"
},
]
capabilities = [{
add = ["NET_ADMIN"]
}]
dns = ["127.0.0.1", "9.9.9.9", "1.1.1.1"]
}
@@ -11,7 +11,7 @@
networks_advanced = [
{
name = "bridge"
name = "external"
},
{
name = "traefik"
@@ -12,10 +12,6 @@
container_path = "/media"
}
dns = ["192.168.1.111"]
labels = "${merge(
var.traefik-labels,
map(
@@ -5,10 +5,6 @@
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
dns = ["192.168.1.111"]
web {
expose = true
port = 7878