Skip to content

Commit

Permalink
Add dockerfile and docker-compose.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Manank Patni <[email protected]>
  • Loading branch information
Man-Jain committed Oct 9, 2022
1 parent 0193e82 commit af64a1e
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 38 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Ignore all
*

# Add build files
!requirements**
!README.md

# Add code
!registrydao

# Add configs
!*.yml

# Ignore caches
**/.mypy_cache
**/.pytest_cache
**/__pycache__
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM dipdup/dipdup:6.1.2

COPY requirements.txt .

RUN pip3 install -r requirements.txt

COPY . .
2 changes: 1 addition & 1 deletion dipdup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contracts:
# address: KT1Je26VLhis2X8FaTda7SQT4PsstmCZL2ez
# typename: registry
registry_ghostnet:
address: KT1MFNuLR6yDCSBiDDKcsvVyNWcZVWNCFRTf
address: KT1QZtF8vVUvZYRxttRwgftc4EaQHZWgzXNp
typename: registry

datasources:
Expand Down
40 changes: 40 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: '3.3'
services:
hasura:
depends_on:
- db
# command:
# - "hasura metadata track --all-tables [--schema public]"
ports:
- '0.0.0.0:8080:8080'
environment:
- 'HASURA_GRAPHQL_DATABASE_URL=postgres://indexer:qwerty@hb-indexer-postgres:5432/indexer_db'
- HASURA_GRAPHQL_ENABLE_CONSOLE=true
- HASURA_GRAPHQL_DEV_MODE=true
- HASURA_GRAPHQL_ADMIN_SECRET=changeme
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=indexer
- HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES=true
image: hasura/graphql-engine:v2.8.3.cli-migrations-v3
db:
container_name: hb-indexer-postgres
ports:
- '0.0.0.0:5432:5432'
environment:
- POSTGRES_USER=indexer
- POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=indexer_db
image: postgres
indexer:
build: .
depends_on:
- db
command: ["-c", "dipdup.yml", "run"]
environment:
- PG_HOST=db
- PG_PORT=5432
- PG_USER=indexer
- PG_PASSWORD=qwerty
- PG_DB=indexer_db
- PG_SCHEMA=public
ports:
- 0.0.0.0:9000:9000
37 changes: 0 additions & 37 deletions registrydao/handlers/on_call_custom.py

This file was deleted.

0 comments on commit af64a1e

Please sign in to comment.