Fix Terraform container address and traefik runtime wiring
This commit is contained in:
@@ -543,7 +543,7 @@ locals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
"searxng-webapp" = {
|
"searxng-webapp" = {
|
||||||
terraform_resource = "docker_container.searxng_webapp"
|
terraform_resource = "docker_container.searxng-webapp"
|
||||||
compose_project = "core"
|
compose_project = "core"
|
||||||
compose_service = "searxng-webapp"
|
compose_service = "searxng-webapp"
|
||||||
compose_file = "apps/searxng/docker-compose.yml"
|
compose_file = "apps/searxng/docker-compose.yml"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
resource "docker_container" "searxng_webapp" {
|
resource "docker_container" "searxng-webapp" {
|
||||||
name = local.docker_containers["searxng-webapp"].container_name
|
name = local.docker_containers["searxng-webapp"].container_name
|
||||||
image = local.docker_containers["searxng-webapp"].image
|
image = local.docker_containers["searxng-webapp"].image
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,61 @@ resource "docker_container" "traefik" {
|
|||||||
image = local.docker_containers["traefik"].image
|
image = local.docker_containers["traefik"].image
|
||||||
|
|
||||||
restart = local.docker_containers["traefik"].restart_policy
|
restart = local.docker_containers["traefik"].restart_policy
|
||||||
|
network_mode = "core_traefik"
|
||||||
|
|
||||||
|
ports {
|
||||||
|
internal = 80
|
||||||
|
external = 80
|
||||||
|
protocol = "tcp"
|
||||||
|
}
|
||||||
|
|
||||||
|
ports {
|
||||||
|
internal = 443
|
||||||
|
external = 443
|
||||||
|
protocol = "tcp"
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/data/letsencrypt"
|
||||||
|
target = "/letsencrypt"
|
||||||
|
read_only = false
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/data/logs"
|
||||||
|
target = "/logs"
|
||||||
|
read_only = false
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/certs"
|
||||||
|
target = "/etc/traefik/certs"
|
||||||
|
read_only = true
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/dynamic.yml"
|
||||||
|
target = "/etc/traefik/dynamic.yml"
|
||||||
|
read_only = true
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/traefik.yml"
|
||||||
|
target = "/etc/traefik/traefik.yml"
|
||||||
|
read_only = true
|
||||||
|
}
|
||||||
|
|
||||||
|
mounts {
|
||||||
|
type = "bind"
|
||||||
|
source = "/home/nixos/docker/core/traefik/data/plugins"
|
||||||
|
target = "/plugins-storage"
|
||||||
|
read_only = false
|
||||||
|
}
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
ignore_changes = [
|
ignore_changes = [
|
||||||
|
|||||||
Reference in New Issue
Block a user