Disable some services
Move vikunja, ofellia and nginx-lb to microos
This commit is contained in:
59
core-os-podman/nginx-lb.tf
Normal file
59
core-os-podman/nginx-lb.tf
Normal file
@@ -0,0 +1,59 @@
|
||||
data "docker_registry_image" "nginx-lb" {
|
||||
name = "jonasal/nginx-certbot:latest"
|
||||
}
|
||||
|
||||
resource "docker_image" "nginx-lb" {
|
||||
name = data.docker_registry_image.nginx-lb.name
|
||||
pull_triggers = [data.docker_registry_image.nginx-lb.sha256_digest]
|
||||
}
|
||||
|
||||
resource "docker_network" "nginx-lb" {
|
||||
name = "nginx-lb"
|
||||
}
|
||||
|
||||
resource "docker_container" "nginx-lb" {
|
||||
image = docker_image.nginx-lb.image_id
|
||||
name = "nginx-lb"
|
||||
|
||||
env = [
|
||||
"CERTBOT_EMAIL=letsencrypt@xz1.nl"
|
||||
]
|
||||
|
||||
mounts {
|
||||
target = "/etc/nginx/nginx.conf"
|
||||
source = "/var/lib/containers/nginx-lb/nginx.conf"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/etc/nginx/config"
|
||||
source = "/var/lib/containers/nginx-lb/conf"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/etc/nginx/user_conf.d"
|
||||
source = "/var/lib/containers/nginx-lb/user_conf.d"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/etc/letsencrypt"
|
||||
source = "/var/lib/containers/nginx-lb/secrets"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
restart = "always"
|
||||
|
||||
networks_advanced {
|
||||
name = docker_network.container-public.name
|
||||
ipv4_address = "192.168.3.29"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
ulimit,
|
||||
log_opts
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user