Skip to content

Instantly share code, notes, and snippets.

@ocxo
Created July 11, 2016 20:50
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 ocxo/5b306011ab5bf975da1735f6de635f4e to your computer and use it in GitHub Desktop.
Save ocxo/5b306011ab5bf975da1735f6de635f4e to your computer and use it in GitHub Desktop.
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "sock",
"host": {
"sourcePath": "/var/run/docker.sock"
}
},
{
"name": "proc",
"host": {
"sourcePath": "/proc/"
}
},
{
"name": "cgroup",
"host": {
"sourcePath": "/cgroup/"
}
}
],
"containerDefinitions": [
{
"name": "app",
"image": "xxxx.dkr.ecr.us-east-1.amazonaws.com/app:<REF>",
"essential": true,
"memory": 1536,
"portMappings": [
{
"hostPort": 80,
"containerPort": 3000
}
],
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "udp://<RSYSLOG_HOSTNAME>:514",
"tag": "xxxx"
}
}
},
{
"name": "sidekiq",
"image": "xxxx.dkr.ecr.us-east-1.amazonaws.com/sidekiq:<REF>",
"essential": true,
"memory": 1536,
"command": ["bundle", "exec", "sidekiq", "-c", "3", "-v"],
"logConfiguration": {
"logDriver": "syslog",
"options": {
"syslog-address": "udp://<RSYSLOG_HOSTNAME>:514",
"tag": "sidekiq"
}
}
},
{
"name": "datadog",
"image": "datadog/docker-dd-agent:latest",
"memory": 256,
"privileged": true,
"environment": [
{ "name": "EC2_TAGS", "value": "yes" }
],
"mountPoints": [
{
"sourceVolume": "sock",
"containerPath": "/var/run/docker.sock"
},
{
"sourceVolume": "proc",
"containerPath": "/host/proc",
"readOnly": "true"
},
{
"sourceVolume": "cgroup",
"containerPath": "/host/sys/fs/cgroup",
"readOnly": "true"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment