-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
41 lines (35 loc) · 1.03 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "rg" {
name = var.global_name_app
location = var.location
}
resource "azurerm_service_plan" "sp" {
name = var.global_name_app
resource_group_name = var.global_name_app
location = var.location
sku_name = "B1"
os_type = "Linux"
depends_on = [ azurerm_resource_group.rg ]
}
resource "azurerm_linux_web_app" "lwa" {
name = var.global_name_app
resource_group_name = var.global_name_app
location = var.location
service_plan_id = azurerm_service_plan.sp.id
app_settings = {
WEBSITES_ENABLE_APP_SERVICE_STORAGE = true
DOCKER_ENABLE_CI = false
DOCKER_REGISTRY_SERVER_URL = "https://index.docker.io/v1"
}
site_config {
always_on = true
websockets_enabled = true
application_stack {
docker_image = "louislam/uptime-kuma"
docker_image_tag = "1"
}
}
depends_on = [ azurerm_service_plan.sp ]
}