-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose-test.yml
53 lines (50 loc) · 1.5 KB
/
docker-compose-test.yml
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
services:
postgres_test:
image: postgres:15
restart: always
environment:
POSTGRES_PASSWORD: postgrespassword
ports:
- "5432:5432"
networks:
- test-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
graphql-engine-test:
image: hasura/graphql-engine:latest
ports:
- "8081:8080"
depends_on:
postgres_test:
condition: service_healthy
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres_test:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
HASURA_GRAPHQL_JWT_SECRET: '{"type":"HS256", "key": "12345678901234567890123456789012", "claims_format": "json", "claims_namespace": "https://hasura.io/jwt/claims"}'
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
HASURA_GRAPHQL_LOG_LEVEL: "debug"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: "startup,http-log,webhook-log,websocket-log,query-log"
ACTION_BASE_URL: http://action-handler:3000
volumes:
- ./tests/metadata:/hasura-metadata
networks:
- test-network
karate:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ./tests/results:/app/target/karate-reports
depends_on:
graphql-engine-test:
condition: service_started
networks:
- test-network
networks:
test-network:
driver: bridge