-
Notifications
You must be signed in to change notification settings - Fork 4
/
joomla-webapp-mysqlinapp.json
131 lines (130 loc) · 3.62 KB
/
joomla-webapp-mysqlinapp.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"AppServicePlanName": {
"type": "string",
"minLength": 1,
"metadata": {
"description": "App Service Plan name"
}
},
"WebAppName": {
"type": "string",
"minLength": 1,
"metadata": {
"description": "Web App name"
}
},
"sku": {
"type": "string",
"metadata": {
"description": "SKU of the App Service Plan. Read more at https://azure.microsoft.com/en-us/pricing/details/app-service/windows/"
},
"allowedValues": [
"F1",
"D1",
"B1",
"B2",
"B3",
"S1",
"S2",
"S3",
"P1V2",
"P2V2",
"P3V2"
],
"defaultValue": "F1"
},
"repoUrl": {
"type": "string",
"metadata": {
"description": "GitHub repo to deploy to App Service"
},
"defaultValue": "https://github.com/azureappserviceoss/joomla-azure"
},
"branch": {
"type": "string",
"metadata": {
"description": "GitHub repo branch to deploy to App Service"
},
"defaultValue": "master"
}
},
"variables": {
"hostingPlanName": "[parameters('AppServicePlanName')]",
"siteName": "[parameters('WebAppName')]"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"sku": {
"name": "[parameters('sku')]",
"capacity": 1
},
"name": "[parameters('AppServicePlanName')]",
"apiVersion": "2016-09-01",
"location": "[resourceGroup().location]",
"properties": {}
},
{
"type": "Microsoft.Web/sites",
"name": "[variables('siteName')]",
"apiVersion": "2016-08-01",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('siteName')]",
"serverFarmId" : "[resourceId(resourceGroup().name,'Microsoft.Web/serverfarms', parameters('AppServicePlanName'))]",
"siteConfig": {
"localMySqlEnabled": true,
"appSettings": [
{
"name": "WEBSITE_MYSQL_ENABLED",
"value": "1"
},
{
"name": "WEBSITE_MYSQL_GENERAL_LOG",
"value": "0"
},
{
"name": "WEBSITE_MYSQL_SLOW_QUERY_LOG",
"value": "0"
},
{
"name": "WEBSITE_MYSQL_ARGUMENTS",
"value": "--max_allowed_packet=16M"
}
]
}
},
"resources": [
{
"type": "sourcecontrols",
"name": "web",
"apiVersion": "2016-08-01",
"properties": {
"RepoUrl": "[parameters('repoUrl')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
},
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('siteName'))]"
]
},
{
"type": "config",
"name": "web",
"apiVersion": "2016-08-01",
"properties": {
"phpVersion": "7.2"
},
"dependsOn": [
"[concat('Microsoft.Web/sites/', variables('siteName'))]"
]
}
],
"dependsOn": [
]
}
]
}