1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/azure-preview-env-template.json
Octomerger Bot ac3d59a206 repo sync (#16442)
* Updated language to reference enabling instead of opt-in

* Optimize images

* fixing broken link

* Update content/get-started/privacy-on-github/about-githubs-use-of-your-data.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/get-started/privacy-on-github/managing-data-use-settings-for-your-private-repository.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Openapi update api.github.com (#26398)

* Openapi 3.0 ghae (#26400)

* Update OpenAPI  Descriptions (#26397)

* Fix a change missed in a last minute update (#26389)

* change order of some site-policy docs (#26307)

* reordering the docs

* Create codespace.md

* Update README.md

* Update README.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Update OpenAPI  Descriptions

* update preview env app_url to preview.ghdocs.com (#26335)

* Fix flag (#26420)

* Update codespace.md

* Update codespace.md

* Update codespace.md

* Remove Caddy from preview envs (#26336)

* remove caddy from preview envs

* fix: remove location from template

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Add `Ignore commits in the blame view` to blame docs (#26017)

* Connect addendum deprecation (#26296)

* temporarily commented  out

* also comment out

* also comment out

Co-authored-by: Jenni Christensen <97056108+dihydroJenoxide@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: Abby Vollmer <vollmera@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Billy Rusteen <birust@github.com>
2022-03-22 11:47:40 -04:00

108 lines
2.7 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"defaultValue": null,
"type": "string",
"minLength": 5,
"maxLength": 63,
"metadata": {
"description": "A unique name for the app"
}
},
"containerImage": {
"type": "string",
"defaultValue": null,
"metadata": {
"description": "Container image to deploy"
}
},
"dockerRegistryUrl": {
"type": "String",
"metadata": {
"description": "Should be a valid host name without protocol"
}
},
"dockerRegistryUsername": {
"type": "String"
},
"dockerRegistryPassword": {
"type": "SecureString"
}
},
"resources": [
{
"type": "Microsoft.ContainerInstance/containerGroups",
"name": "[parameters('appName')]",
"apiVersion": "2021-07-01",
"location": "[resourceGroup().location]",
"properties": {
"containers": [
{
"name": "app",
"properties": {
"image": "[parameters('containerImage')]",
"ports": [
{
"protocol": "TCP",
"port": 4000
}
],
"environmentVariables": [
{
"name": "PORT",
"value": "4000"
},
{
"name": "NODE_ENV",
"value": "production"
},
{
"name": "WEB_CONCURRENCY",
"value": "1"
},
{
"name": "ENABLED_LANGUAGES",
"value": "en"
}
],
"resources": {
"requests": {
"memoryInGB": 4,
"cpu": 1
}
}
}
}
],
"imageRegistryCredentials": [
{
"server": "[parameters('dockerRegistryUrl')]",
"username": "[parameters('dockerRegistryUsername')]",
"password": "[parameters('dockerRegistryPassword')]"
}
],
"restartPolicy": "Always",
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 4000
}
],
"type": "Public",
"dnsNameLabel": "[parameters('appName')]"
},
"osType": "Linux"
}
}
],
"outputs": {
"defaultHostName": {
"value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups', parameters('appName'))).ipAddress.fqdn]",
"type": "string"
}
}
}