hasura graphql 集成pipelinedb测试

2022-03-01 00:00:00 创建 专区 订阅 付费 添加

实际上因为pipelinedb 是原生支持pg的,所以应该不存在太大的问题,以下为测试

使用doker-compose 运行

配置

  • docker-compose 文件
version: '3.6'
services:
  postgres:
    image: tkanos/pipelinedb_kafka
    ports:
    - "5432:5432"
  graphql-engine:
    image: hasura/graphql-engine:v1.0.0-alpha06
    ports:
    - "8080:8080"
    depends_on:
    - "postgres"
    environment:
    - "POSTGRES_PASSWORD:pipeline"
    command: >
      /bin/sh -c "
      graphql-engine --database-url postgres://pipeline:pipeline@postgres:5432/pipeline serve --enable-console;
      "
volumes:
  db_data:

相关文章