分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

metabase docker-compose ?运行说明

发布时间:2023-09-06 02:20责任编辑:蔡小小关键词:meta

metabase 是一款比较产品化的一个数据分析工具,支持的数据源也比较多
以下为简单的docker-compose 运行文件,同时集成了mongo 以及graphql 引擎,方便数据
的api查询

docker-compose 文件

version: "3"services: ?graphql: ???image: hasura/graphql-engine:v1.0.0-alpha27 ???ports: ???- "8080:8080" ???command: > ?????/bin/sh -c " ?????graphql-engine --database-url postgres://postgres@postgres/postgres serve --enable-console; ?????" ?torodb-stampede: ???image: torodb/stampede ???links: ?????- postgres ?????- mongodb ???environment: ?????- POSTGRES_PASSWORD ?????- TORODB_SETUP=true ?????- TORODB_SYNC_SOURCE=mongodb:27017 ?????- TORODB_BACKEND_HOST=postgres ?????- TORODB_BACKEND_PORT=5432 ?????- TORODB_BACKEND_DATABASE ?????- TORODB_BACKEND_USER ?????- TORODB_BACKEND_PASSWORD ?????- DEBUG ?metabase: ????image: metabase/metabase ????ports: ????- "3000:3000" ?postgres: ????image: postgres:9.6 ????environment: ????- POSTGRES_PASSWORD ????ports: ?????- "15432:5432" ?mongodb: ????image: mongo:3.2 ????ports: ?????- "28017:27017" ????entrypoint: ?????- /bin/bash ?????- "-c" ?????- mongo --nodb --eval ‘ ???????????var db; ????????????while (!db) { ????????????????try { ??????????????????db = new Mongo("mongodb:27017").getDB("local"); ????????????????} catch(ex) {} ????????????????sleep(3000); ????????????}; ????????????rs.initiate({_id:"rs1",members:[{_id:0,host:"mongodb:27017"}]}); ???????‘ 1>/dev/null 2>&1 & ????????mongod --replSet rs1

参考资料

https://www.metabase.com/start/docker.html

metabase docker-compose ?运行说明

原文地址:https://www.cnblogs.com/rongfengliang/p/9901489.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved