Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO 63 Update Hasura Version #43

Merged
merged 10 commits into from
Apr 25, 2023
Prev Previous commit
Next Next commit
Updated version of hasura, added docker-compose for test.
vvuwei committed Mar 28, 2023
commit d102a73026754c7076a7312abeeef24b508be1bb
56 changes: 56 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: "3.6"

services:
indexer:
image: dipdup/metadata:latest
command: "-c dipdup.yml"
build:
dockerfile: build/metadata/Dockerfile
context: .
depends_on:
- db
env_file:
- .env
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
- ADMIN_SECRET=${ADMIN_SECRET:-changeme}
- IPFS_NODE_URI=${IPFS_NODE_URI:-https://ipfs.io}
volumes:
- ipfs:/etc/metadata/ipfs

db:
image: postgres:13
restart: always
volumes:
- db:/var/lib/postgres/data
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_USER=dipdup
- POSTGRES_DB=dipdup
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dipdup"]
interval: 10s
timeout: 5s
retries: 5

hasura:
image: hasura/graphql-engine:v2.20.0
ports:
- "127.0.0.1:8080:8080"
depends_on:
- db
restart: always
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres://dipdup:${POSTGRES_PASSWORD:-changeme}@db:5432/dipdup
- HASURA_GRAPHQL_ENABLE_CONSOLE=true
- HASURA_GRAPHQL_DEV_MODE=true
- HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log
- HASURA_GRAPHQL_ADMIN_SECRET=${ADMIN_SECRET:-changeme}
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=user

volumes:
db:
ipfs:
16 changes: 10 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,10 @@ services:
indexer:
image: dipdup/metadata:latest
build:
dockerfile: build/metadata/Dockerfile
context: .
dockerfile: build/metadata/Dockerfile
context: .
depends_on:
- db
env_file:
- .env
restart: always
@@ -22,8 +24,8 @@ services:
volumes:
- db:/var/lib/postgres/data
ports:
- 127.0.0.1:5432:5432
environment:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_USER=dipdup
- POSTGRES_DB=dipdup
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
@@ -34,9 +36,11 @@ services:
retries: 5

hasura:
image: hasura/graphql-engine:v2.0.8
image: hasura/graphql-engine:v2.20.0
ports:
- 127.0.0.1:8080:8080
- "127.0.0.1:8080:8080"
depends_on:
- db
restart: always
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres://dipdup:${POSTGRES_PASSWORD:-changeme}@db:5432/dipdup