Skip to content

Commit b166295

Browse files
committed
chore: 메모리 증설 redis 재 연결
1 parent 0432aba commit b166295

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/main/java/bitnagil/bitnagil_backend/global/config/DevRedisConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer;
1212
import org.springframework.data.redis.serializer.StringRedisSerializer;
1313

14-
//@Profile({"dev", "local"})
15-
@Profile({"local"})
14+
@Profile({"dev", "local"})
15+
//@Profile({"local"})
1616
@Configuration
1717
public class DevRedisConfig {
1818

task-definition-dev.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
}
1515
],
1616
"essential": true,
17+
"links": [
18+
"redis-dev"
19+
],
1720
"environment": [
1821
{
1922
"name": "SPRING_PROFILES_ACTIVE",
@@ -41,6 +44,25 @@
4144
"secretOptions": []
4245
},
4346
"systemControls": []
47+
},
48+
{
49+
"name": "redis-dev",
50+
"image": "redis:7-alpine",
51+
"cpu": 1,
52+
"portMappings": [
53+
{
54+
"name": "redis-dev-6379-tcp",
55+
"containerPort": 6379,
56+
"hostPort": 6379,
57+
"protocol": "tcp"
58+
}
59+
],
60+
"essential": false,
61+
"environment": [],
62+
"environmentFiles": [],
63+
"mountPoints": [],
64+
"volumesFrom": [],
65+
"systemControls": []
4466
}
4567
],
4668
"taskRoleArn": "arn:aws:iam::750819668269:role/ecsTaskExecutionRole",

0 commit comments

Comments
 (0)