2024-01-25 19:13:35 +01:00
|
|
|
data "docker_registry_image" "jitsi_jvb" {
|
|
|
|
name = "jitsi/jvb:stable"
|
|
|
|
}
|
|
|
|
|
2024-01-27 09:30:30 +01:00
|
|
|
locals {
|
|
|
|
labels_jvb = {
|
|
|
|
"shepherd.auto-update" = "true",
|
|
|
|
"traefik.enable" = "true"
|
|
|
|
"traefik.http.services.jitsi-jvb.loadbalancer.server.port" = "9090",
|
|
|
|
"traefik.http.routers.jitsi-jvb.rule" = "Host(`talk.chaoswest.tv`)&&PathPrefix(`/colibri-ws`)",
|
|
|
|
"traefik.http.routers.jitsi-jvb.tls" = "true",
|
|
|
|
"traefik.http.routers.jitsi-jvb.tls.certresolver" = "default",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-25 19:13:35 +01:00
|
|
|
resource "docker_service" "jitsi_jvb" {
|
|
|
|
name = "jitsi_jvb"
|
|
|
|
|
2024-01-27 09:30:30 +01:00
|
|
|
dynamic "labels" {
|
|
|
|
for_each = local.labels_jvb
|
|
|
|
content {
|
|
|
|
label = labels.key
|
|
|
|
value = labels.value
|
|
|
|
}
|
2024-01-25 19:13:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
endpoint_spec {
|
|
|
|
ports {
|
|
|
|
target_port = 10000
|
|
|
|
published_port = 10000
|
|
|
|
protocol = "udp"
|
|
|
|
publish_mode = "host"
|
|
|
|
}
|
|
|
|
|
|
|
|
ports {
|
|
|
|
target_port = 4443
|
|
|
|
published_port = 4443
|
|
|
|
protocol = "tcp"
|
|
|
|
publish_mode = "host"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task_spec {
|
2024-01-27 09:30:30 +01:00
|
|
|
networks_advanced {
|
|
|
|
name = data.docker_network.traefik.id
|
|
|
|
}
|
|
|
|
|
2024-01-25 19:13:35 +01:00
|
|
|
networks_advanced {
|
|
|
|
name = docker_network.jitsi.id
|
|
|
|
}
|
|
|
|
|
|
|
|
container_spec {
|
|
|
|
image = "${data.docker_registry_image.jitsi_jvb.name}@${data.docker_registry_image.jitsi_jvb.sha256_digest}"
|
|
|
|
|
|
|
|
env = {
|
|
|
|
DOCKER_HOST_ADDRESS = "talk.chaoswest.tv"
|
|
|
|
JVB_AUTH_USER = "jvb"
|
|
|
|
JVB_AUTH_PASSWORD = nonsensitive(var.secrets.jvb_auth_password)
|
|
|
|
JVB_BREWERY_MUC = "jvbbrewery"
|
|
|
|
JVB_PORT = "10000"
|
|
|
|
JVB_TCP_HARVESTER_DISABLED = "true"
|
|
|
|
JVB_TCP_PORT = "4443"
|
|
|
|
JVB_TCP_MAPPED_PORT = "4443"
|
|
|
|
PUBLIC_URL = "https://talk.chaoswest.tv"
|
|
|
|
TZ = "Europe/Berlin"
|
|
|
|
XMPP_AUTH_DOMAIN = "auth.meet.jitsi"
|
|
|
|
XMPP_INTERNAL_MUC_DOMAIN = "internal-muc.meet.jitsi"
|
|
|
|
XMPP_SERVER = "jitsi_prosody"
|
2024-01-27 09:30:30 +01:00
|
|
|
JVB_WS_SERVER_ID = "jitsi_jvb"
|
|
|
|
JVB_DISABLE_STUN = "1"
|
2024-01-25 19:13:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|