Hierarchical Azure IoT Edge - Layer 5 Modules (ACR Connected Registry with Environment Variables Configuration)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"modulesContent": { | |
"$edgeAgent": { | |
"properties.desired": { | |
"modules": { | |
"connectedRegistry": { | |
"settings": { | |
"image": "mcr.microsoft.com/acr/connected-registry:0.2.0", | |
"createOptions": "{\"HostConfig\":{\"Binds\":[\"/home/azureuser/connected-registry:/var/acr/data\"],\"PortBindings\":{\"8080/tcp\":[{\"HostPort\":\"8080\"}]}}}" | |
}, | |
"type": "docker", | |
"env": { | |
"ACR_REGISTRY_NAME": { | |
"value": "<replace_with_the_connected_registry_name>" | |
}, | |
"ACR_SYNC_TOKEN_NAME": { | |
"value": "<replace_with_the_sync_token_name>" | |
}, | |
"ACR_SYNC_TOKEN_PASSWORD": { | |
"value": "<replace_with_the_sync_token_password>" | |
}, | |
"ACR_PARENT_PROTOCOL": { | |
"value": "https" | |
}, | |
"ACR_PARENT_GATEWAY_ENDPOINT": { | |
"value": "<replace_with_the_parent_gateway_endpoint>" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always", | |
"version": "1.0" | |
}, | |
"iotEdgeApiProxy": { | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-api-proxy:1.0", | |
"createOptions": "{\"HostConfig\": {\"PortBindings\": {\"443/tcp\": [{\"HostPort\": \"443\"}]}}}" | |
}, | |
"type": "docker", | |
"version": "1.0", | |
"env": { | |
}, | |
"status": "running", | |
"restartPolicy": "always", | |
"startupOrder": 3 | |
} | |
}, | |
"runtime": { | |
"settings": { | |
"minDockerVersion": "v1.25", | |
"registryCredentials": { | |
"iotedgeforiiotACR": { | |
"address": "<replace_with_your_ACR_login_server>", | |
"password": "<replace_with_your_ACR_login_password>", | |
"username": "<replace_with_your_ACR_login_name>" | |
} | |
} | |
}, | |
"type": "docker" | |
}, | |
"schemaVersion": "1.1", | |
"systemModules": { | |
"edgeAgent": { | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-agent:1.2", | |
"createOptions": "{}" | |
}, | |
"type": "docker" | |
}, | |
"edgeHub": { | |
"settings": { | |
"image": "mcr.microsoft.com/azureiotedge-hub:1.2", | |
"createOptions": "{\"HostConfig\": {\"PortBindings\": {\"5671/tcp\": [{\"HostPort\": \"5671\"}],\"8883/tcp\": [{\"HostPort\": \"8883\"}]}}}" | |
}, | |
"type": "docker", | |
"env": { | |
"experimentalFeatures:enabled": { | |
"value": "true" | |
}, | |
"experimentalFeatures:nestedEdgeEnabled": { | |
"value": "true" | |
}, | |
"https_proxy": { | |
"value": "http://10.16.8.4:3128" | |
} | |
}, | |
"status": "running", | |
"restartPolicy": "always" | |
} | |
} | |
} | |
}, | |
"$edgeHub": { | |
"properties.desired": { | |
"routes": { | |
"ToUpstream": "FROM /messages/* INTO $upstream" | |
}, | |
"schemaVersion": "1.1", | |
"storeAndForwardConfiguration": { | |
"timeToLiveSecs": 7200 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment