Search code examples
docker-composeredisamazon-rdsaws-fargateredash

What should I put in REDASH_REDIS_URL for Redash connect to AWS Redis?


I am trying to configure docker-compose.yml so the Redash docker can connect to my AWS resources. There are two environmental variables I think I should change from default:

REDASH_REDIS_URL: "redis://redis:6379/0"
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"

My endpoints for Redis & RDS are: redash-redis.xxxxxx.xx.xxxx.usw2.cache.amazonaws.com:6379 redash-1-instance-1.xxxxxxxxxxxx.us-west-2.rds.amazonaws.com (writer instance)

Is the followings look right before I build the docker image? I want to push to ECR for Fargate to use in task.

REDASH_REDIS_URL: "redis://redash-redis.xxxxxx.xx.xxxx.usw2.cache.amazonaws.com:6379/0"
REDASH_DATABASE_URL: "postgresql://redash-1-instance-1.xxxxxxxxxxxx.us-west-2.rds.amazonaws.com@postgres/postgres"

The ultimate goal is to host Redash, Redis, Postgresql in our AWS environment, connect postgresql & redis in the docker image.


Solution

  • I think your Redis URL is correct but there are some mistakes in your Postgres URL. The following URL worked for us. You should give something like this:

    REDASH_DATABASE_URL=postgresql://{username}:{password}@xxxxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com/postgres