File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
infrastructure/applications/clamav Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,15 @@ resource "aws_ecs_task_definition" "clamav" {
88 container_definitions = jsonencode ([
99 {
1010 name = " clamav"
11- image = " clamav/clamav-debian:1.4.1 "
11+ image = " clamav/clamav-debian:1.4.1_base "
1212 memoryReservation = local.is_prod ? 1000 : 10
1313 essential = true
14+ environment = [
15+ {
16+ name = " CLAMD_CONF_ConcurrentDatabaseReload"
17+ value = " no"
18+ }
19+ ]
1420
1521 portMappings = [
1622 {
@@ -19,7 +25,13 @@ resource "aws_ecs_task_definition" "clamav" {
1925 },
2026 ]
2127
22- mountPoints = []
28+ mountPoints = [
29+ {
30+ sourceVolume = " clamav"
31+ containerPath = " /var/lib/clamav"
32+ readOnly = false
33+ }
34+ ]
2335
2436 logConfiguration = {
2537 logDriver = " awslogs"
@@ -44,6 +56,11 @@ resource "aws_ecs_task_definition" "clamav" {
4456 }
4557 ])
4658
59+ volume {
60+ name = " clamav"
61+ host_path = " /clamav"
62+ }
63+
4764 requires_compatibilities = []
4865 tags = {}
4966}
You can’t perform that action at this time.
0 commit comments