Skip to content

Instantly share code, notes, and snippets.

@DanielBerman
Created October 6, 2016 10:48
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 DanielBerman/9ca7ccd6902f007b30a59afa4e664e75 to your computer and use it in GitHub Desktop.
Save DanielBerman/9ca7ccd6902f007b30a59afa4e664e75 to your computer and use it in GitHub Desktop.
Task definition for using the Logz.io Docker log collector on AWS ECS
{
"networkMode": "bridge",
"taskRoleArn": null,
"containerDefinitions": [
{
"volumesFrom": [],
"memory": null,
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"portMappings": [],
"hostname": null,
"essential": true,
"entryPoint": null,
"mountPoints": [
{
"containerPath": "/var/run/docker.sock",
"sourceVolume": "docker-sock",
"readOnly": true
}
],
"name": "logzio-docker",
"ulimits": null,
"dockerSecurityOptions": null,
"environment": [
{
"name": "LOGZIO_TOKEN",
"value": "logz-token"
}
],
"links": null,
"workingDirectory": null,
"readonlyRootFilesystem": false,
"image": "logzio/logzio-docker",
"command": null,
"user": null,
"dockerLabels": null,
"logConfiguration": null,
"cpu": 0,
"privileged": true,
"memoryReservation": 128
}
],
"volumes": [
{
"host": {
"sourcePath": "/var/run/docker.sock"
},
"name": "docker-sock"
}
],
"family": "logzio-docker"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment