数据分析Redash

from

  https://github.com/getredash/redash
  http://kekefund.com/2018/09/12/redash-use/

start

  git clone https://github.com/getredash/redash && cd redash 

  git tag
  git checkout -b v6.0.0 v6.0.0

  cat docker-compose.production.yml 

nginx改端口

nginx:
ports:
  - "88:80"

images指定v6

server:
image: redash/redash:6.0.0.b8537

worker:
image: redash/redash:6.0.0.b8537

新增挂载

mkdir -p /home/redash/{redis,pgsql}
redis:
volumes:
  - /home/redash/redis:/data
postgres:
volumes: 
  - /home/redash/pgsql:/var/lib/postgresql/data

修改REDASH_COOKIE_SECRET

  REDASH_COOKIE_SECRET: "Q422k6vaXUk8"
  

运行

  docker-compose -f docker-compose.production.yml run --rm server create_db
  docker-compose -f docker-compose.production.yml up -d

停止

  docker-compose -f docker-compose.production.yml down

URL

  http://*.*.*.*:88/
添加新评论