记一次 Docker的 redash 安装
1、克隆Git存储库:
git clone https://github.com/getredash/redash.git
cd redash/
2、创建Docker服务
完成上述设置后,您需要创建Docker服务:
docker-compose up -d
请确保为的Docker VM提供足够的内存(4GB或更多)
3、安装npm软件包
npm install
4、建立资料库
# 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、构建前端
npm run build
6、运行前端
npm run start
现在,开发服务器可以在上找到http://localhost:8080
。当更改前端代码时,它将重建前端代码,并刷新浏览器。所有API调用都被代理 localhost:5000
(在Docker中运行的服务器)。
效果