version: '3.6' services: postgres: image: postgres environment: - "POSTGRES_PASSWORD:dalong" restart: always ports: - "5432:5432" volumes: - db_data:/var/lib/postgresql/data volumes: db_data:
curl -sSL https://get.haskellstack.org/ | sh
構建有點慢github
cd graphql-engine/server stack build --fast
docker-compose up -d
stack exec graphql-engine -- --database-url=postgres://postgres:dalong@localhost:5432/postgres serve --enable-console
https://github.com/hasura/graphql-engine/blob/master/server/CONTRIBUTING.mdsql