Skip to content

Instantly share code, notes, and snippets.

@madgoat
Created April 13, 2017 22:21
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 madgoat/7ad911cc03738fb7473e8d1b529819f9 to your computer and use it in GitHub Desktop.
Save madgoat/7ad911cc03738fb7473e8d1b529819f9 to your computer and use it in GitHub Desktop.
Sample AWS Task Description
{
"networkMode": "bridge",
"containerDefinitions": [
{
"image": "wp-dev/wp-dev:latest",
"cpu": 10,
"memory": 300,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"environment": [
{
"name": "WORDPRESS_DB_USER",
"value": "wordpress"
},
{
"name": "MYSQL_PORT_3306_TCP",
"value": "tcp://wordpress.cfd6yvq6y7mw.us-east-1.rds.amazonaws.com:3306:3306"
},
{
"name": "WORDPRESS_DB_NAME",
"value": "wordpress"
},
{
"name": "WORDPRESS_DB_PASSWORD",
"value": "wordpress"
},
{
"name": "WORDPRESS_DB_HOST",
"value": "wordpress.cfd6yvq6y7mw.us-east-1.rds.amazonaws.com"
}
],
"essential": false,
"entrypoint": "/entrypoint.sh",
"mountPoints": [
{
"sourceVolume": "wpvol",
"containerPath": "/var/www/html",
"readOnly": false
}
],
"memory": 256,
"name": "wordpress",
"cpu": 128,
"image": "wordpress"
}
],
"volumes": [
{
"name": "wpvol",
"host": {
"sourcePath": "/mnt/efs/www/html"
}
}
],
"family": "wordpress"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment