Hi,
I was deploying Redash on AWS EB multi-container docker platform.
My Dockerrun.aws.json is:
{
“AWSEBDockerrunVersion”: 2,
“containerDefinitions”: [
{
“command”: [
“worker”
],
“links”: [
“postgres”,
“redis”
],
“environment”: [
{
“name”: “QUEUES”,
“value”: “queries”
},
{
“name”: “WORKERS_COUNT”,
“value”: “2”
},
{
“name”: “REDASH_DATABASE_URL”,
“value”: “postgresql://postgres:password@postgres/postgres”
},
{
“name”: “POSTGRES_PASSWORD”,
“value”: “password”
},
{
“name”: “REDASH_REDIS_URL”,
“value”: “redis://redis:6379/0”
},
{
“name”: “REDASH_LOG_LEVEL”,
“value”: “INFO”
},
{
“name”: “PYTHONUNBUFFERED”,
“value”: “0”
}
],
“essential”: true,
“image”: “redash/redash:latest”,
“name”: “adhoc_worker”,
“memory”: 128
},
{
“essential”: true,
“image”: “redash/nginx:latest”,
“links”: [
“server”
],
“dependsOn”: [
{
“containerName”: “server”,
“condition”: “START”
}
],
“name”: “nginx”,
“memory”: 128,
“portMappings”: [
{
“containerPort”: 80,
“hostPort”: 80
}
]
},
{
“essential”: true,
“image”: “postgres:9.6-alpine”,
“name”: “postgres”,
“memory”: 128,
“environment”: [
{
“name”: “REDASH_DATABASE_URL”,
“value”: “postgresql://postgres:password@postgres/postgres”
},
{
“name”: “POSTGRES_PASSWORD”,
“value”: “password”
},
{
“name”: “REDASH_REDIS_URL”,
“value”: “redis://redis:6379/0”
},
{
“name”: “REDASH_LOG_LEVEL”,
“value”: “INFO”
},
{
“name”: “PYTHONUNBUFFERED”,
“value”: “0”
}
]
},
{
“essential”: true,
“image”: “redis:5.0-alpine”,
“name”: “redis”,
“memory”: 128
},
{
“command”: [
“worker”
],
“links”: [
“postgres”,
“redis”
],
“environment”: [
{
“name”: “QUEUES”,
“value”: “scheduled_queries,schemas”
},
{
“name”: “WORKERS_COUNT”,
“value”: “1”
},
{
“name”: “REDASH_DATABASE_URL”,
“value”: “postgresql://postgres:password@postgres/postgres”
},
{
“name”: “POSTGRES_PASSWORD”,
“value”: “password”
},
{
“name”: “REDASH_REDIS_URL”,
“value”: “redis://redis:6379/0”
},
{
“name”: “REDASH_LOG_LEVEL”,
“value”: “INFO”
},
{
“name”: “PYTHONUNBUFFERED”,
“value”: “0”
}
],
“essential”: true,
“image”: “redash/redash:latest”,
“name”: “scheduled_worker”,
“memory”: 128
},
{
“command”: [
“scheduler”
],
“links”: [
“postgres”,
“redis”
],
“environment”: [
{
“name”: “QUEUES”,
“value”: “celery”
},
{
“name”: “WORKERS_COUNT”,
“value”: “1”
},
{
“name”: “REDASH_DATABASE_URL”,
“value”: “postgresql://postgres:password@postgres/postgres”
},
{
“name”: “POSTGRES_PASSWORD”,
“value”: “password”
},
{
“name”: “REDASH_REDIS_URL”,
“value”: “redis://redis:6379/0”
},
{
“name”: “REDASH_LOG_LEVEL”,
“value”: “INFO”
},
{
“name”: “PYTHONUNBUFFERED”,
“value”: “0”
}
],
“essential”: true,
“image”: “redash/redash:latest”,
“name”: “scheduler”,
“memory”: 128
},
{
“command”: [
“server”
],
“links”: [
“postgres”,
“redis”
],
“environment”: [
{
“name”: “REDASH_WEB_WORKERS”,
“value”: “4”
},
{
“name”: “REDASH_DATABASE_URL”,
“value”: “postgresql://postgres:password@postgres/postgres”
},
{
“name”: “POSTGRES_PASSWORD”,
“value”: “password”
},
{
“name”: “REDASH_REDIS_URL”,
“value”: “redis://redis:6379/0”
},
{
“name”: “REDASH_LOG_LEVEL”,
“value”: “INFO”
},
{
“name”: “PYTHONUNBUFFERED”,
“value”: “0”
}
],
“essential”: true,
“image”: “redash/redash:latest”,
“name”: “server”,
“memory”: 128,
“portMappings”: [
{
“containerPort”: 5000,
“hostPort”: 5000
}
]
}
],
“family”: “”,
“volumes”:
}
When i run “eb run local” to spin the containers locally, get following error:
nginx_1 | 2020/10/24 12:59:05 [emerg] 1#1: host not found in upstream “redash:5000” in /etc/nginx/conf.d/default.conf:2
nginx_1 | nginx: [emerg] host not found in upstream “redash:5000” in /etc/nginx/conf.d/default.conf:2
redash_nginx_1 exited with code 1
All containers are running fine except the redash_nginx_1 with the above error.