2023-12-19 12:04:02 +03:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgis/postgis:16-3.4
|
|
|
|
platform: linux/amd64
|
|
|
|
restart: always
|
|
|
|
command:
|
|
|
|
- -F # turn fsync off for speed
|
|
|
|
- -N 1000 # increase max connections from 100 so we can run more HGEs
|
|
|
|
ports:
|
|
|
|
- 64001:5432
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
volumes:
|
|
|
|
- type: volume
|
|
|
|
source: postgres
|
|
|
|
target: /var/lib/postgresql/data
|
|
|
|
- type: bind
|
2024-03-19 21:06:30 +03:00
|
|
|
source: ./crates/engine/tests/db_definition.sql
|
2023-12-19 12:04:02 +03:00
|
|
|
target: /docker-entrypoint-initdb.d/db_definition.sql
|
|
|
|
read_only: true
|
|
|
|
healthcheck:
|
|
|
|
test:
|
|
|
|
- CMD-SHELL
|
|
|
|
- psql -U "$${POSTGRES_USER:-postgres}" < /dev/null && sleep 5 && psql -U "$${POSTGRES_USER:-postgres}" < /dev/null
|
|
|
|
start_period: 5s
|
|
|
|
interval: 5s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 20
|
2024-03-21 19:48:53 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
reference_agent:
|
2024-02-21 15:22:55 +03:00
|
|
|
build: https://github.com/hasura/ndc-spec.git#v0.1.0-rc.18
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
- 8102:8100
|
2024-03-21 19:48:53 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
auth_hook:
|
2024-03-21 19:48:53 +03:00
|
|
|
build: ./crates/hasura-authn-webhook/dev-auth-webhook
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
- "3050:3050"
|
2024-03-21 19:48:53 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
jaeger:
|
|
|
|
image: jaegertracing/all-in-one:1.37
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 5775:5775/udp
|
|
|
|
- 6831:6831/udp
|
|
|
|
- 6832:6832/udp
|
|
|
|
- 5778:5778
|
|
|
|
- 4002:16686
|
|
|
|
- 14250:14250
|
|
|
|
- 14268:14268
|
|
|
|
- 14269:14269
|
|
|
|
- 4317:4317 # OTLP gRPC
|
|
|
|
- 4318:4318 # OTLP HTTP
|
|
|
|
- 9411:9411
|
|
|
|
environment:
|
2024-03-21 19:48:53 +03:00
|
|
|
COLLECTOR_OTLP_ENABLED: "true"
|
|
|
|
COLLECTOR_ZIPKIN_HOST_PORT: "9411"
|
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
postgres_connector:
|
2024-02-21 15:22:55 +03:00
|
|
|
image: ghcr.io/hasura/ndc-postgres:dev-main-0452625e7
|
2024-03-21 19:48:53 +03:00
|
|
|
command:
|
|
|
|
- serve
|
|
|
|
- --configuration
|
|
|
|
- /config.json
|
|
|
|
- "--otlp-endpoint"
|
|
|
|
- http://jaeger:4317
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
- 8100:8100
|
|
|
|
volumes:
|
2024-03-19 21:06:30 +03:00
|
|
|
- ./crates/engine/tests/pg_ndc_config.json:/config.json
|
2023-12-19 12:04:02 +03:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2024-03-21 19:48:53 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
custom_connector:
|
|
|
|
build:
|
|
|
|
context: .
|
2024-03-21 19:48:53 +03:00
|
|
|
target: built
|
|
|
|
entrypoint:
|
|
|
|
- ./target/release/custom-connector
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
- 8101:8101
|
|
|
|
healthcheck:
|
2024-03-21 19:48:53 +03:00
|
|
|
test: curl -fsS http://localhost:8101/schema
|
2023-12-19 12:04:02 +03:00
|
|
|
start_period: 5s
|
|
|
|
interval: 5s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 20
|
2024-03-21 19:48:53 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
engine:
|
|
|
|
build:
|
|
|
|
context: .
|
2024-03-21 19:48:53 +03:00
|
|
|
target: built
|
|
|
|
entrypoint:
|
|
|
|
- ./target/release/engine
|
|
|
|
environment:
|
|
|
|
- METADATA_PATH
|
|
|
|
- AUTHN_CONFIG_PATH
|
|
|
|
- OLTP_ENDPOINT=http://jaeger:4317
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
# Binding to localhost:3001 avoids conflict with dev_setup
|
|
|
|
- 3001:3000
|
2024-03-21 19:48:53 +03:00
|
|
|
depends_on:
|
|
|
|
reference_agent:
|
|
|
|
condition: service_started
|
|
|
|
jaeger:
|
|
|
|
condition: service_started
|
|
|
|
auth_hook:
|
|
|
|
condition: service_started
|
2023-12-19 12:04:02 +03:00
|
|
|
|
|
|
|
dev_setup:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: builder
|
|
|
|
volumes:
|
2024-03-19 21:06:30 +03:00
|
|
|
- ./crates/tracing-util:/app/tracing-util
|
|
|
|
- ./crates/lang-graphql:/app/lang-graphql
|
|
|
|
- ./crates/open-dds:/app/open-dds
|
|
|
|
- ./crates/engine:/app/engine
|
|
|
|
- ./crates/hasura-authn-core:/app/hasura-authn-core
|
|
|
|
- ./crates/hasura-authn-webhook:/app/hasura-authn-webhook
|
2023-12-19 12:04:02 +03:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2024-03-21 19:48:53 +03:00
|
|
|
depends_on:
|
|
|
|
jaeger:
|
|
|
|
condition: service_started
|
|
|
|
auth_hook:
|
|
|
|
condition: service_started
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
postgres_connector:
|
|
|
|
condition: service_started
|
|
|
|
custom_connector:
|
|
|
|
condition: service_healthy
|
2023-12-19 12:04:02 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|