Skip to content

Commit

Permalink
[deploy] add docs domain
Browse files Browse the repository at this point in the history
  • Loading branch information
capcom6 committed Nov 18, 2024
1 parent fd079ae commit 855f215
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions deployments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ resource "docker_service" "app" {
label = "traefik.docker.network"
value = data.docker_network.proxy.name
}

labels {
label = "traefik.http.routers.${var.app-name}.rule"
value = "Host(`${var.app-host}`)"
Expand All @@ -65,6 +66,19 @@ resource "docker_service" "app" {
value = "le"
}

labels {
label = "traefik.http.routers.${var.app-name}-docs.rule"
value = "Host(`docs.sms-gate.app`)"
}
labels {
label = "traefik.http.routers.${var.app-name}-docs.entrypoints"
value = "https"
}
labels {
label = "traefik.http.routers.${var.app-name}-docs.tls.certresolver"
value = "le"
}

labels {
label = "traefik.http.services.${var.app-name}.loadbalancer.server.port"
value = 80
Expand Down

0 comments on commit 855f215

Please sign in to comment.