General fixup
This commit is contained in:
parent
f3cd8d6008
commit
c3ac0d2d14
6 changed files with 11 additions and 5 deletions
products
docker_registry
forgejo/forgejo
pgbackweb
smokeping
statping
traefik
|
@ -4,7 +4,7 @@ module "docker_registry_janitor" {
|
|||
stack_name = var.stack_name
|
||||
service_name = "janitor"
|
||||
image = "registry:2"
|
||||
command = ["registry", "garbage-collect", "/etc/docker/registry/config.yml", "--delete-untagged"]
|
||||
command = ["registry", "garbage-collect", "/etc/docker/registry/config.yml", "--delete-untagged"]
|
||||
configs = {
|
||||
"/etc/docker/registry/config.yml" = yamlencode(local.registry_config_yaml)
|
||||
"/etc/docker/registry/htpasswd" = local.registry_htpasswd
|
||||
|
@ -13,4 +13,5 @@ module "docker_registry_janitor" {
|
|||
restart_delay = "6h"
|
||||
placement_constraints = var.placement_constraints
|
||||
networks = [module.registry_network]
|
||||
converge_enable = false
|
||||
}
|
||||
|
|
|
@ -39,5 +39,5 @@ module "forgejo" {
|
|||
container = 3000
|
||||
},
|
||||
]
|
||||
traefik = var.traefik
|
||||
traefik = merge( var.traefik, {port = 3000})
|
||||
}
|
|
@ -17,7 +17,7 @@ module "pgbackweb" {
|
|||
service_name = var.service_name
|
||||
networks = concat([module.network], var.networks)
|
||||
placement_constraints = var.placement_constraints
|
||||
traefik = merge(var.traefik,{ port = 8085 })
|
||||
traefik = merge(var.traefik, { port = 8085 })
|
||||
}
|
||||
module "postgres" {
|
||||
source = "../postgres"
|
||||
|
|
|
@ -7,7 +7,9 @@ variable "traefik" {
|
|||
default = null
|
||||
type = object({
|
||||
domain = string
|
||||
port = optional(number, 80)
|
||||
port = optional(number)
|
||||
ssl = optional(bool, false)
|
||||
rule = optional(string)
|
||||
})
|
||||
description = "Whether to enable traefik for the service."
|
||||
}
|
||||
|
|
|
@ -49,7 +49,9 @@ variable "traefik" {
|
|||
default = null
|
||||
type = object({
|
||||
domain = string
|
||||
port = optional(number, 8080)
|
||||
port = optional(number)
|
||||
ssl = optional(bool, false)
|
||||
rule = optional(string)
|
||||
})
|
||||
description = "Whether to enable traefik for the service."
|
||||
}
|
|
@ -63,6 +63,7 @@ module "traefik" {
|
|||
traefik = var.traefik_service_domain != null ? {
|
||||
domain = var.traefik_service_domain
|
||||
port = var.dashboard_port
|
||||
ssl = var.enable_ssl
|
||||
} : null
|
||||
ports = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue