-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdocker-compose-test.yaml
35 lines (34 loc) · 1.24 KB
/
docker-compose-test.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
services:
postgres_test:
image: postgres:14
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: password
healthcheck:
test: "pg_isready -U postgres"
interval: 2s
timeout: 10s
retries: 5
hasura_test:
image: hasura/graphql-engine:v2.36.4.cli-migrations-v3
ports:
- "8081:8080"
depends_on:
postgres_test:
condition: service_healthy
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:password@postgres_test:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: secret!
HASURA_GRAPHQL_ENABLED_LOG_TYPES: "startup, http-log, webhook-log, websocket-log, query-log"
HASURA_GRAPHQL_MIGRATIONS_DIR: /hasura-migrations
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
HASURA_GRAPHQL_JWT_SECRET: '{"key": "unsafe_AnEsZxveGsAWoENHGAnEsZxveGsAvxgMtDq9UxgTsDq9UxgTsNHGWoENIoJ", "type": "HS512"}'
HASURA_GRAPHQL_CLI_ENVIRONMENT: "default"
NEXT_API_URL: "http://host.docker.internal:3000/api"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
INTERNAL_ENDPOINTS_SECRET: internal_endpoint_test_key
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata