2023-12-19 12:04:02 +03:00
|
|
|
services:
|
|
|
|
postgres:
|
2024-04-22 16:42:32 +03:00
|
|
|
extends:
|
|
|
|
file: ./docker-compose.yaml
|
|
|
|
service: postgres
|
2024-03-12 18:26:31 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
postgres_connector:
|
2024-04-03 11:03:18 +03:00
|
|
|
image: ghcr.io/hasura/ndc-postgres:dev-main
|
2024-03-12 18:26:31 +03:00
|
|
|
ports:
|
2024-04-03 14:50:56 +03:00
|
|
|
- 8080:8080
|
2024-04-03 11:03:18 +03:00
|
|
|
environment:
|
|
|
|
CONNECTION_URI: "postgresql://postgres:password@postgres"
|
2024-05-14 18:10:42 +03:00
|
|
|
RUST_LOG: info
|
2023-12-19 12:04:02 +03:00
|
|
|
volumes:
|
2024-04-03 11:03:18 +03:00
|
|
|
- type: bind
|
|
|
|
source: ./crates/engine/tests/ndc-postgres-configuration
|
|
|
|
target: /etc/connector
|
|
|
|
read_only: true
|
2023-12-19 12:04:02 +03:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2024-03-12 18:26:31 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
custom_connector:
|
|
|
|
build:
|
2024-04-22 16:42:32 +03:00
|
|
|
dockerfile: debug.Dockerfile
|
2024-03-21 19:48:53 +03:00
|
|
|
entrypoint:
|
2024-04-22 16:42:32 +03:00
|
|
|
- ./bin/custom-connector
|
2024-03-12 18:26:31 +03:00
|
|
|
ports:
|
|
|
|
- "8101:8101"
|
2024-05-14 18:10:42 +03:00
|
|
|
environment:
|
|
|
|
RUST_LOG: info
|
2023-12-19 12:04:02 +03:00
|
|
|
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-12 18:26:31 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
source_only:
|
|
|
|
build:
|
2024-04-22 16:42:32 +03:00
|
|
|
dockerfile: debug.Dockerfile
|
2023-12-19 12:04:02 +03:00
|
|
|
volumes:
|
2024-04-22 16:42:32 +03:00
|
|
|
- ./auth_config.json:/app/auth_config.json
|
|
|
|
- ./benchmark.sh:/app/benchmark.sh
|
|
|
|
- ./coverage.sh:/app/coverage.sh
|
|
|
|
- ./crates:/app/crates
|
2023-12-19 12:04:02 +03:00
|
|
|
- ./coverage:/app/coverage
|
2024-03-12 18:26:31 +03:00
|
|
|
|
2023-12-19 12:04:02 +03:00
|
|
|
test_setup:
|
|
|
|
build:
|
2024-04-22 16:42:32 +03:00
|
|
|
dockerfile: debug.Dockerfile
|
2023-12-19 12:04:02 +03:00
|
|
|
depends_on:
|
2024-03-21 19:48:53 +03:00
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
postgres_connector:
|
2024-04-03 11:03:18 +03:00
|
|
|
condition: service_healthy
|
2024-03-21 19:48:53 +03:00
|
|
|
custom_connector:
|
|
|
|
condition: service_healthy
|
2023-12-19 12:04:02 +03:00
|
|
|
volumes:
|
2024-04-22 16:42:32 +03:00
|
|
|
- ./auth_config.json:/app/auth_config.json
|
2023-12-19 12:04:02 +03:00
|
|
|
- ./benchmark.sh:/app/benchmark.sh
|
2024-04-22 16:42:32 +03:00
|
|
|
- ./coverage.sh:/app/coverage.sh
|
|
|
|
- ./crates:/app/crates
|
2023-12-19 12:04:02 +03:00
|
|
|
- ./coverage:/app/coverage
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|