UNPKG

@0xobelisk/graphql-server

Version:

Tookit for interacting with dubhe graphql server

47 lines (44 loc) 1.11 kB
version: '3.8' services: postgres: image: postgres:15-alpine environment: POSTGRES_DB: postgres POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - '5432:5432' volumes: - ./data/postgres:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s timeout: 5s retries: 5 graphql-server: build: context: . dockerfile: Dockerfile ports: - '4000:4000' environment: DATABASE_URL: postgres://postgres:postgres@postgres:5432/dubhe_graphql NODE_ENV: production PORT: 4000 GRAPHQL_ENDPOINT: /graphql PG_SCHEMA: public ENABLE_CORS: 'true' ENABLE_SUBSCRIPTIONS: 'true' WATCH_PG: 'false' depends_on: postgres: condition: service_healthy redis: condition: service_healthy restart: unless-stopped healthcheck: test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost:4000/graphql'] interval: 30s timeout: 10s retries: 3