Initial commit

This commit is contained in:
Marc Fokkert
2023-07-26 21:01:51 +02:00
commit e357babf6d
52 changed files with 1681 additions and 0 deletions

33
pihole.tf Normal file
View File

@@ -0,0 +1,33 @@
## Job scheduler for pihole
resource "docker_image" "pihole" {
name = "pihole/pihole:latest"
}
resource "docker_container" "pihole" {
image = docker_image.pihole.latest
name = "pihole"
restart = "always"
mounts {
target = "/etc-pihole"
source = "/share/appdata/pi-hole"
type = "bind"
}
capabilities {
add = ["NET_ADMIN"]
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.114"
}
}