112 lines
3.0 KiB
JSON
112 lines
3.0 KiB
JSON
{
|
|
"modulesContent": {
|
|
"$edgeAgent": {
|
|
"properties.desired": {
|
|
"schemaVersion": "1.1",
|
|
"modules": {},
|
|
"runtime": {
|
|
"type": "docker",
|
|
"settings": {
|
|
"minDockerVersion": "v1.25",
|
|
"registryCredentials": {
|
|
"registryName": {
|
|
"username": "${ContainerRegistryUserName}",
|
|
"password": "${ContainerRegistryPassword}",
|
|
"address": "${ContainerRegistryLoginServer}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"systemModules": {
|
|
"edgeAgent": {
|
|
"imagePullPolicy": "on-create",
|
|
"type": "docker",
|
|
"env": {
|
|
"storageFolder": {
|
|
"value": "/aziot/storage/"
|
|
},
|
|
"UpstreamProtocol": {
|
|
"value": "AMQPWS"
|
|
}
|
|
},
|
|
"settings": {
|
|
"image": "mcr.microsoft.com/azureiotedge-agent:1.5",
|
|
"createOptions": {
|
|
"HostConfig": {
|
|
"Binds": [
|
|
"/etc/aziot/storage/:/aziot/storage/"
|
|
],
|
|
"LogConfig": {
|
|
"Type": "json-file",
|
|
"Config": {
|
|
"max-size": "10m",
|
|
"max-file": "10"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"edgeHub": {
|
|
"imagePullPolicy": "on-create",
|
|
"type": "docker",
|
|
"env": {
|
|
"storageFolder": {
|
|
"value": "/aziot/storage/"
|
|
},
|
|
"UpstreamProtocol": {
|
|
"value": "AMQPWS"
|
|
}
|
|
},
|
|
"status": "running",
|
|
"restartPolicy": "always",
|
|
"startupOrder": 0,
|
|
"settings": {
|
|
"image": "mcr.microsoft.com/azureiotedge-hub:1.5",
|
|
"createOptions": {
|
|
"HostConfig": {
|
|
"Binds": [
|
|
"/etc/aziot/storage/:/aziot/storage/"
|
|
],
|
|
"LogConfig": {
|
|
"Type": "json-file",
|
|
"Config": {
|
|
"max-size": "10m",
|
|
"max-file": "10"
|
|
}
|
|
},
|
|
"PortBindings": {
|
|
"5671/tcp": [
|
|
{
|
|
"HostPort": "5671"
|
|
}
|
|
],
|
|
"8883/tcp": [
|
|
{
|
|
"HostPort": "8883"
|
|
}
|
|
],
|
|
"443/tcp": [
|
|
{
|
|
"HostPort": "443"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$edgeHub": {
|
|
"properties.desired": {
|
|
"schemaVersion": "1.1",
|
|
"storeAndForwardConfiguration": {
|
|
"timeToLiveSecs": 86400
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|