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

44
nginx-lb-certbot.tf Normal file
View File

@@ -0,0 +1,44 @@
data "docker_registry_image" "nginx-lb-certbot" {
name = "certbot/certbot:latest"
}
resource "docker_image" "nginx-lb-certbot" {
name = data.docker_registry_image.nginx-lb-certbot.name
pull_triggers = [data.docker_registry_image.nginx-lb-certbot.sha256_digest]
}
resource "docker_network" "nginx-lb-certbot" {
name = "nginx-lb-certbot"
}
resource "docker_container" "nginx-lb-certbot" {
image = docker_image.nginx-lb-certbot.latest
name = "nginx-lb-certbot"
mounts {
target = "/etc/letsencrypt"
source = "/share/appdata/nginx-lb/certs"
type = "bind"
}
mounts {
target = "/var/www/acme-challenge-root"
source = "/share/appdata/nginx-lb/certbot"
type = "bind"
}
# Triggered by ofelia
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
#command = ["certonly", "--webroot", "--email", "info@xz1.nl", "-w", "/var/www/acme-challenge-root", "-d", "photoprism.xz1.nl", "--agree-tos"]
#command = ["certonly", "--webroot", "--email", "info@xz1.nl", "-w", "/var/www/acme-challenge-root", "-d", "airsonic.xz1.nl", "--agree-tos"]
#command = ["certonly", "--webroot", "--email", "info@xz1.nl", "-w", "/var/www/acme-challenge-root", "-d", "hass.xz1.nl", "--agree-tos"]
#command = ["certonly", "--webroot", "--email", "info@xz1.nl", "-w", "/var/www/acme-challenge-root", "-d", "freshrss.xz1.nl", "--agree-tos"]
command = ["renew"]
}