-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
ci.docker-compose.yaml
67 lines (62 loc) · 1.55 KB
/
ci.docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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: