-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-compose.yaml
41 lines (40 loc) · 1.37 KB
/
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
services:
postgres:
image: postgres:16
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U postgres"
interval: 2s
timeout: 10s
retries: 5
environment:
POSTGRES_PASSWORD: password
hasura:
# remember to update developer-portal-deployment with the same image
image: hasura/graphql-engine:v2.36.4.cli-migrations-v3
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:password@postgres: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_vxgMtDq9UxgTsDq9UxgTsNHGAnEsZxveGsAWoENHGAnEsZxveGsAWoENIoJ", "type": "HS512"}'
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
NEXT_API_URL: "http://host.docker.internal:3000/api"
INTERNAL_ENDPOINTS_SECRET: xnEU6vvqPMkc5UYEPVWM2IArdQ2eWv7A9
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: redis:6
ports:
- "6379:6379"