-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdb-task-def.json
68 lines (68 loc) · 1.64 KB
/
db-task-def.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"family": "tapyrus-service-database",
"networkMode": "bridge",
"executionRoleArn": "arn:aws:iam::104420014930:role/ecsTaskExecutionRole",
"volumes": [
{
"name" : "db",
"dockerVolumeConfiguration" : {
"scope": "shared",
"autoprovision": true,
"driver": "local"
}
}
],
"containerDefinitions": [
{
"name": "db",
"hostname": "db",
"image": "mysql:8",
"essential": true,
"command": [
"--default-authentication-plugin=mysql_native_password"
],
"portMappings": [
{
"containerPort": 3306,
"hostPort": 3306,
"protocol": "tcp"
}
],
"mountPoints": [
{
"containerPath": "/var/lib/mysql",
"sourceVolume": "db"
}
],
"environment": [
{
"name": "MYSQL_USER",
"value": "tapyrus_faucet"
},{
"name": "MYSQL_DATABASE",
"value": "tapyrus_faucet_production"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "tapyrus-faucet",
"awslogs-region": "ap-northeast-1",
"awslogs-stream-prefix": "db"
}
},
"secrets": [
{
"name": "MYSQL_ROOT_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-1:104420014930:secret:tapyrus-testnet-faucet-lYHz1j"
},
{
"name": "MYSQL_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:ap-northeast-1:104420014930:secret:tapyrus-testnet-faucet-lYHz1j"
}
]
}
],
"cpu": "256",
"memory": "1024"
}