-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordpress.tpl
50 lines (50 loc) · 1.2 KB
/
wordpress.tpl
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
[
{
"name": "${ecs_service_container_name}",
"image": "wordpress:latest",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp"
}
],
"secrets": [{
"name": "WORDPRESS_DB_PASSWORD",
"valueFrom": "arn:aws:secretsmanager:${aws_region}:${aws_account_id}:secret:${secret_name}:WORDPRESS_DB_PASSWORD::"
}],
"environment": [
{
"name": "WORDPRESS_DB_HOST",
"value": "${wordpress_db_host}"
},
{
"name": "WORDPRESS_DB_USER",
"value": "${wordpress_db_user}"
},
{
"name": "WORDPRESS_DB_NAME",
"value": "${wordpress_db_name}"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group" : "${cloudwatch_log_group}",
"awslogs-region": "${aws_region}",
"awslogs-stream-prefix": "wordpress"
}
},
"mountPoints": [
{
"readOnly": false,
"containerPath": "/var/www/html/wp-content/themes",
"sourceVolume": "efs-themes"
},
{
"readOnly": false,
"containerPath": "/var/www/html/wp-content/plugins",
"sourceVolume": "efs-plugins"
}
]
}
]