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

Add tlx indexer #148

Merged
merged 6 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,23 @@ services:
GQL_PORT: 4350
RPC_ENDPOINT: https://mainnet.optimism.io

optimism-mainnet-tlx-processor:
image: ghcr.io/synthetixio/data/indexer:${VERSION}-optimism-mainnet-tlx
build:
context: ./indexers/optimism-mainnet-tlx
networks:
- data
depends_on:
- db
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: optimism_mainnet_tlx
DB_PASS: $PG_PASSWORD
GQL_PORT: 4350
RPC_ENDPOINT: https://mainnet.optimism.io

snax-testnet-processor:
image: ghcr.io/synthetixio/data/indexer:${VERSION}-snax-testnet
build:
Expand Down
5 changes: 5 additions & 0 deletions indexers/optimism-mainnet-tlx/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.git
/node_modules
/lib
/*Versions.json
.env
15 changes: 15 additions & 0 deletions indexers/optimism-mainnet-tlx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:16-alpine

WORKDIR /app

COPY package*.json ./

RUN apk add --no-cache python3
RUN apk add --no-cache build-base && npm ci && apk del build-base

COPY . .

RUN npm run generate:processor
RUN npm run build

CMD npm run generate:migration ; npm run start
Loading
Loading