Skip to content

Instantly share code, notes, and snippets.

@RichardBronosky
Created April 2, 2015 15:37
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 RichardBronosky/f7cb03c72b3149219012 to your computer and use it in GitHub Desktop.
Save RichardBronosky/f7cb03c72b3149219012 to your computer and use it in GitHub Desktop.
Starts a container with the Redis "Official Repo" and a container with my https://registry.hub.docker.com/u/richardbronosky/aws-ecs-service-discovery/
{
"family": "redis-service",
"volumes": [
{
"name": "ecs",
"host": {"sourcePath": "/etc/ecs"}
}
],
"containerDefinitions": [
{
"name": "redis-server",
"image": "redis",
"cpu": 10,
"memory": 800,
"essential": true,
"portMappings": [
{
"containerPort": 6379,
"hostPort": 6379
}
]
},
{
"environment": [],
"name": "service-discovery",
"image": "richardbronosky/aws-ecs-service-discovery",
"cpu": 2,
"memory": 45,
"entryPoint": ["awsesd"],
"mountPoints": [
{
"sourceVolume": "ecs",
"containerPath": "/etc/ecs",
"readOnly": true
}
],
"essential": false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment