Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created March 8, 2017 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobi/e5152e05829150f0b0b3c2532b62c6ba to your computer and use it in GitHub Desktop.
Save marrobi/e5152e05829150f0b0b3c2532b62c6ba to your computer and use it in GitHub Desktop.
Docker extension with volume
{
"type": "extensions",
"name": "DockerExtension",
"tags": {
"displayName": "DockerExtension"
},
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "DockerExtension",
"typeHandlerVersion": "1.2",
"autoUpgradeMinorVersion": true,
"settings": {
"compose": {
"geoserver": {
"image": "winsent/geoserver:2.10",
"ports": [ "8080:8080" ]
"volumes": [
"/media/geoserverdatadir:/opt/geoserver/data_dir"
]
}
}
},
"protectedSettings": {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment