-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-run.sh
executable file
·30 lines (29 loc) · 1.5 KB
/
docker-run.sh
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
#! /bin/bash
# Using JWT
docker run -d --net=host --name hasura-cindy-next \
--log-opt max-size=10m \
-e HASURA_GRAPHQL_DATABASE_URL=postgres://cindy:cindy@localhost:5432/cindy \
-e HASURA_GRAPHQL_ENABLE_CONSOLE=true \
-e HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets \
-e SUBSCRIPTION_SERVER_WEBHOOK="http://localhost:3001/webhook/subscriptions" \
-e PYTHON_SERVER_WEBHOOK="http://localhost:3002/webhook" \
-e HASURA_GRAPHQL_JWT_SECRET='{
"type": "RS256",
"jwk_url": "http://localhost:3001/webhook/jwks",
"claims_namespace": "https://www.cindythink.com/jwt/claims",
"claims_format": "json"
}' \
-e HASURA_GRAPHQL_ADMIN_SECRET="CINDYTHINK_HASURA_ADMIN_SECRET" \
-e HASURA_GRAPHQL_UNAUTHORIZED_ROLE=anonymous \
hasura/graphql-engine:latest
# Using Webhook
#docker run -d --net=host --name hasura-cindy-next \
# --log-opt max-size=10m \
# -e HASURA_GRAPHQL_DATABASE_URL=postgres://cindy:cindy@localhost:5432/cindy \
# -e HASURA_GRAPHQL_ENABLE_CONSOLE=true \
# -e HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets \
# -e SUBSCRIPTION_SERVER_WEBHOOK="http://localhost:3001/webhook/subscriptions" \
# -e PYTHON_SERVER_WEBHOOK="http://localhost:3002/webhook" \
# -e HASURA_GRAPHQL_AUTH_HOOK="http://localhost:3001/webhook/webhook" \
# -e HASURA_GRAPHQL_ADMIN_SECRET="CINDYTHINK_HASURA_ADMIN_SECRET" \
# hasura/graphql-engine:latest