git clone https://github.com/getredash/redash
docker network create redash
docker run -d --name postgres -v /usr/var/run/redash/postgres:/var/lib/postgresql/data --restart unless-stopped --net redash postgres:9.3
docker run -d --name redis --restart unless-stopped --net redash redis:2.8
docker run -it --rm -p 5000:5000 --net redash --env-file redash-config redash/redash /opt/redash/current/manage.py database create_tables
docker run -it --rm -p 5000:5000 --net redash --env-file redash-config redash/redash /opt/redash/current/manage.py users create --admin --password admin "Admin" "admin"
docker inspect postgres # get container ip 172.17.02 and use below ...
docker run --rm -it postgres:9.3 psql -h 172.17.02 -p 5432 -U postgres -c "CREATE ROLE redash_reader WITH PASSWORD 'redash_reader' NOCREATEROLE NOCREATEDB NOSUPERUSER LOGIN"
docker run --rm -it postgres:9.3 psql -h 172.17.02 -p 5432 -U postgres -c "grant select(id,name,type) ON data_sources to redash_reader;"
docker run --rm -it postgres:9.3 psql -h 172.17.02 -p 5432 -U postgres -c "grant select(id,name) ON users to redash_reader;"
docker run --rm -it postgres:9.3 psql -h 172.17.02 -p 5432 -U postgres -c "grant select on events, queries, dashboards, widgets,visualizations, query_results to redash_reader;"
docker run -it --rm -p 5000:5000 --net redash --env-file redash-config redash/redash /opt/redash/current/manage.py ds new "re:dash metadata" --type "pg" --options "{\"user\": \"redash_reader\", \"password\": \"redash_reader\", \"host\": \"postgres\", \"dbname\": \"postgres\"}"
docker run -d --name redash --restart unless-stopped -p 5000:5000 --net redash --env-file redash-config redash/redash
docker run -d --name redash-nginx -v nginx-conf-dir:/etc/nginx/conf.d --restart unless-stopped --net redash -p 80:80 -p 443:443 redash/nginx:latest
docker exec -it redash ./manage.py set_google_apps_domains allowed-domain.com
I follow your steps and the webui can start, but I cannot query. It seems that celery workers didn't start. Because if I check the page “system status”, the Celery status fail to load. Any idea how to fix it?