graphql-engine/v3/ci.docker-compose.yaml
Samir Talwar cc8bdcc560 Add support for HTTP/2 to the custom connector. (#581)
Enable HTTP/2 support for Axum, so that we can make use of request
multiplexing from the engine in the future.

I also added an `env_logger` to the custom connector so we can see
what's going on there.

V3_GIT_ORIGIN_REV_ID: 3082b988ae3d149ee548f94638308876734b26df
2024-05-14 15:11:28 +00:00

68 lines
1.5 KiB
YAML

services:
postgres:
extends:
file: ./docker-compose.yaml
service: postgres
postgres_connector:
image: ghcr.io/hasura/ndc-postgres:dev-main
ports:
- 8080:8080
environment:
CONNECTION_URI: "postgresql://postgres:password@postgres"
RUST_LOG: info
volumes:
- type: bind
source: ./crates/engine/tests/ndc-postgres-configuration
target: /etc/connector
read_only: true
depends_on:
postgres:
condition: service_healthy
custom_connector:
build:
dockerfile: debug.Dockerfile
entrypoint:
- ./bin/custom-connector
ports:
- "8101:8101"
environment:
RUST_LOG: info
healthcheck:
test: curl -fsS http://localhost:8101/schema
start_period: 5s
interval: 5s
timeout: 10s
retries: 20
source_only:
build:
dockerfile: debug.Dockerfile
volumes:
- ./auth_config.json:/app/auth_config.json
- ./benchmark.sh:/app/benchmark.sh
- ./coverage.sh:/app/coverage.sh
- ./crates:/app/crates
- ./coverage:/app/coverage
test_setup:
build:
dockerfile: debug.Dockerfile
depends_on:
postgres:
condition: service_healthy
postgres_connector:
condition: service_healthy
custom_connector:
condition: service_healthy
volumes:
- ./auth_config.json:/app/auth_config.json
- ./benchmark.sh:/app/benchmark.sh
- ./coverage.sh:/app/coverage.sh
- ./crates:/app/crates
- ./coverage:/app/coverage
volumes:
postgres: