Docker 环境下部署 redash

环境: centos7

官网:https://redash.io/help/open-source/dev-guide/docker

一、安装步骤

1、虚拟机安装

  安装vmware,并安装centos7

2、安装docker
  docker安装手册
3、安装nodejs

  centos下安装Nodejs

4、redash安装
  1)、clone git repostory
git clone https://github.com/getredash/redash.git
  2)、Create Docker Services
docker-compose up
  3)、Install npm Packages
npm install
  4)、Create Database
# Create tables
docker-compose run --rm server create_db

# Create database for tests
docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests"
5、启动redash
docker-compose -f docker-compose.yml up -d

 

6、邮箱配置

  参考地址:

https://redash.io/help/open-source/setup/

https://ithelp.ithome.com.tw/articles/10207745?sc=iThelpR

https://www.copylian.com/technology/201.html

在docker-compose.yml 中配置:

REDASH_MAIL_SERVER: "smtp.163.com"
REDASH_MAIL_PORT: 465
REDASH_MAIL_USE_TLS: "false"
REDASH_MAIL_USE_SSL: "true"
REDASH_MAIL_USERNAME: "xxxx@163.com"
REDASH_MAIL_PASSWORD: "xxxxxx"
REDASH_MAIL_DEFAULT_SENDER: "xxxxx@163.com"

邮箱测试:

docker-compose run --rm server manage send_test_mail

 

二、问题

  1、npm build报错处理

  https://blog.csdn.net/wq18512847606/article/details/80847751

  2、安装pip

  https://www.cnblogs.com/BillyYoung/p/11088470.html

  3、解决启动错误:(docker-entrypoint)

  https://www.jianshu.com/p/ffe2b5a08897

转载于:https://www.cnblogs.com/BillyYoung/p/11077476.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值