How to configure n8n on AWS ECS with Redis running

I’m configuring n8n in Queue Mode on an ECS (AWS) with Bridge mode network, and n8n can’t find Redis. Has anyone experienced this? Can you help?
Follow jason:
{
“taskDefinitionArn”: “arn:aws:ecs:us-east-1:xxxxxxxxxxxx:task-definition/n8n-task:17”,
“containerDefinitions”: [
{
“name”: “n8n”,
“image”: “n8nio/n8n:latest”,
“cpu”: 512,
“memoryReservation”: 512,
“portMappings”: [
{
“name”: “porta-aleatoria”,
“containerPort”: 5678,
“hostPort”: 0,
“protocol”: “tcp”,
“appProtocol”: “http”
}
],
“essential”: true,
“environment”: [
{
“name”: “WEBHOOK_URL”,
“value”: “https://xyz.com.br
},
{
“name”: “DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED”,
“value”: “false”
},
{
“name”: “DB_POSTGRESDB_DATABASE”,
“value”: “n8n”
},
{
“name”: “EXECUTIONS_MODE”,
“value”: “queue”
},
{
“name”: “QUEUE_BULL_REDIS_HOST”,
“value”: “localhost”
},
{
“name”: “DB_POSTGRESDB_PASSWORD”,
“value”: “postgres”
},
{
“name”: “N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS”,
“value”: “true”
},
{
“name”: “N8N_HOST”,
“value”: “n8n10.xyz”
},
{
“name”: “N8N_PROTOCOL”,
“value”: “https”
},
{
“name”: “DB_POSTGRESDB_HOST”,
“value”: “db-n8n-qm.xxxxxxxxxxx.us-east-1.rds.amazonaws.com
},
{
“name”: “DB_TYPE”,
“value”: “postgresdb”
},
{
“name”: “QUEUE_BULL_REDIS_PORT”,
“value”: “6379”
},
{
“name”: “DB_POSTGRESDB_USER”,
“value”: “postgres”
},
{
“name”: “N8N_ENCRYPTION_KEY”,
“value”: “xyzxyzxyzxyxzxyzxyxyzxyzxyzxyzxyz”
},
{
“name”: “N8N_RUNNERS_ENABLED”,
“value”: “true”
},
{
“name”: “GENERIC_TIMEZONE”,
“value”: “America/Sao_Paulo”
}
],
“mountPoints”: ,
“volumesFrom”: ,
“logConfiguration”: {
“logDriver”: “awslogs”,
“options”: {
“awslogs-group”: “/ecs/n8n-task”,
“mode”: “non-blocking”,
“awslogs-create-group”: “true”,
“max-buffer-size”: “25m”,
“awslogs-region”: “us-east-1”,
“awslogs-stream-prefix”: “ecs”
},
“secretOptions”:
},
“systemControls”:
},
{
“name”: “redis”,
“image”: “redis:6-alpine”,
“cpu”: 512,
“memoryReservation”: 512,
“portMappings”: [
{
“name”: “porta_redis”,
“containerPort”: 6379,
“hostPort”: 6379,
“protocol”: “tcp”
}
],
“essential”: true,
“environment”: ,
“environmentFiles”: ,
“mountPoints”: ,
“volumesFrom”: ,
“logConfiguration”: {
“logDriver”: “awslogs”,
“options”: {
“awslogs-group”: “/ecs/n8n-task”,
“mode”: “non-blocking”,
“awslogs-create-group”: “true”,
“max-buffer-size”: “25m”,
“awslogs-region”: “us-east-1”,
“awslogs-stream-prefix”: “ecs”
},
“secretOptions”:
},
“systemControls”:
}
],
“family”: “n8n-task”,
“executionRoleArn”: “arn:aws:iam::xxxxxxxxxxxx:role/ecsTaskExecutionRole”,
“networkMode”: “bridge”,
“revision”: 17,
“volumes”: ,
“status”: “ACTIVE”,
“requiresAttributes”: [
{
“name”: “com.amazonaws.ecs.capability.logging-driver.awslogs”
},
{
“name”: “ecs.capability.execution-role-awslogs”
},
{
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.19”
},
{
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.28”
},
{
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.21”
},
{
“name”: “com.amazonaws.ecs.capability.docker-remote-api.1.29”
}
],
“placementConstraints”: ,
“compatibilities”: [
“EC2”
],
“requiresCompatibilities”: [
“EC2”
],
“runtimePlatform”: {
“cpuArchitecture”: “ARM64”,
“operatingSystemFamily”: “LINUX”
},
“registeredAt”: “2025-03-03T00:59:25.767Z”,
“registeredBy”: “arn:aws:iam::xxxxxxxxxxxx:user/xxxxx”,
“tags”:
}

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Answers:

n8n versão = latest
database = postgres 16.3
running = docker
system = Amazon Linux 2023
Redis=redis 6 alpine
Executions process= own

1 Like