Skip to content

Commit efb8a9a

Browse files
author
minhpv-2595
committed
feat: setup docker-compose and sample user metadata
1 parent 215176d commit efb8a9a

20 files changed

+61
-0
lines changed

config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 3
2+
endpoint: http://localhost:8080
3+
# admin_secret: secret
4+
metadata_directory: metadata
5+
actions:
6+
kind: synchronous

docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
services:
2+
postgres:
3+
image: postgres:15
4+
restart: always
5+
volumes:
6+
- db_data:/var/lib/postgresql/data
7+
environment:
8+
POSTGRES_PASSWORD: postgrespassword
9+
graphql-engine:
10+
image: hasura/graphql-engine:v2.46.0
11+
ports:
12+
- "8080:8080"
13+
restart: always
14+
environment:
15+
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
16+
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
17+
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
18+
HASURA_GRAPHQL_DEV_MODE: "true" # set to "false" disable this in production
19+
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
20+
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
21+
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
22+
23+
volumes:
24+
db_data:

metadata/actions.graphql

Whitespace-only changes.

metadata/actions.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
actions: []
2+
custom_types:
3+
enums: []
4+
input_objects: []
5+
objects: []
6+
scalars: []

metadata/allow_list.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

metadata/api_limits.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

metadata/backend_configs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

metadata/cron_triggers.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: users
3+
schema: public
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- "!include public_users.yaml"

0 commit comments

Comments
 (0)