redash icon indicating copy to clipboard operation
redash copied to clipboard

Docker-compose not working

Open ebertti opened this issue 10 years ago • 6 comments

I had to fix the docker-compose-example to:

redash:
  image: redash/redash
  ports:
    - "5000:5000"
  links:
    - redis
    - postgres
  environment:
    REDASH_STATIC_ASSETS_PATH: "../rd_ui/app/"
    REDASH_LOG_LEVEL: "INFO"
    REDASH_REDIS_URL: "redis://redis:6379/0"
    REDASH_DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/postgres"
    REDASH_COOKIE_SECRET: "veryverysecret"
    REDASH_GOOGLE_APPS_DOMAIN: "aa"

redis:
  image: redis:2.8
  ports:
    - "6379:6379"

postgres:
  image: postgres:9.3
  ports:
    - "5234:5234"
  volumes:
   - /opt/postgres-data:/var/lib/postgresql/data

redash-nginx:
  image: redash/nginx
  ports:
    - "80:80"
  links:
    - redash

When it start to conect everything, I got this two erros:

image

image

I think some create database command is missing on docker creation.

ebertti avatar Feb 18 '16 18:02 ebertti

I am also facing this exact problem.

Can anyone help?

:(

joaoleite avatar Feb 18 '16 19:02 joaoleite

The first problem happens because you set the assets path to rd_ui/app which doesn't exist in the Docker image. Just remove the REDASH_STATIC_ASSETS_PATH env variable from the Docker compose file.

As for the database, you need to create it. Try using this script: https://github.com/getredash/redash/blob/master/setup/docker/create_database.sh. It wasn't tested enough yet, but should work.

arikfr avatar Feb 18 '16 19:02 arikfr

Hi!

Taking about the missing index template:

redash:
  image: redash/redash
  ports:
    - "5000:5000"
  links:
    - redis
    - postgres
  environment:
    REDASH_LOG_LEVEL: "INFO"
    REDASH_REDIS_URL: "redis://redis:6379/0"
    REDASH_DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/postgres"
    REDASH_COOKIE_SECRET: "veryverysecret"
    REDASH_GOOGLE_APPS_DOMAIN: "aa"

I'm still getting same error:

image

ebertti avatar Feb 18 '16 19:02 ebertti

My bad, you should keep that env variable but set it to: REDASH_STATIC_ASSETS_PATH: "../rd_ui/dist/"

arikfr avatar Feb 18 '16 19:02 arikfr

#911 should solve this (along with the recent commits fixing docker-compose-example.yml)

jeffwidman avatar Mar 22 '16 20:03 jeffwidman

#911 merged, closing this one.

arikfr avatar Apr 15 '16 20:04 arikfr