From 2c8e43aa2879a4aa4f735def55d711453d9ac366 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Mon, 1 Mar 2021 17:53:13 +1100 Subject: [PATCH] Add redis to task definition. --- deploy/task-definition-template.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/deploy/task-definition-template.json b/deploy/task-definition-template.json index ae22243..8daba9f 100644 --- a/deploy/task-definition-template.json +++ b/deploy/task-definition-template.json @@ -32,7 +32,7 @@ }, { "name": "REDIS_HOST", - "value": "redis" + "value": "ec2-user_redis_1" } ], "mountPoints": [], @@ -48,7 +48,21 @@ "awslogs-region": "${AWS_REGION}", "awslogs-create-group": "true" } - } + }, + "links": ["redis"] + }, + { + "portMappings": [ + { + "protocol": "tcp", + "containerPort": 6379 + } + ], + "cpu": 0, + "memory": 32, + "image": "redis", + "essential": true, + "name": "redis" } ] } \ No newline at end of file