Django with postgres and redis

I have a django project which uses postgres and redis. I’m trying to run test cases in a docker container using the following commands.

database:
    override:
        - docker run --name postgres95 -e POSTGRES_PASSWORD=password -d postgres:9.5; sleep 10
        - docker run -it --link postgres95 -e "PGPASSWORD=password" postgres:9.5 sh -c 'exec psql -h "$POSTGRES95_PORT_5432_TCP_ADDR" -p "$POSTGRES95_PORT_5432_TCP_PORT" -U postgres -c "CREATE DATABASE mandalore"'
        - docker run --name redis -d redis:3.2; sleep 10

test:
    override:
        - docker run --name mandalore-test --link postgres95:postgres95 --link redis:redis -w "/code/mandalore/mandalore" grofers/mandalore python manage.py test --settings=mandalore.circle_settings

Django is able to connect to postgres, however I keep getting redis connection errors. What could be the issue?

EDIT: this is CircleCI 1.0 specific and it looks like the customer fixed the issue by to the celery / redis config for the CI environment.