Skip to content

Commit

Permalink
Setup compose file for fast Near indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly-Style committed Nov 25, 2024
1 parent 18ec0c2 commit 3a5c329
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
cache-to: type=gha,mode=max,scope=operator

- name: Build and start Docker Compose services
run: docker-compose -f ./docker-compose.yml up --build -d
run: docker-compose --profile default-indexer -f ./docker-compose.yml up --build -d

- name: Wait for 5 minutes
run: sleep 300
Expand Down Expand Up @@ -125,4 +125,4 @@ jobs:
done
- name: Tear down Docker Compose services
run: docker-compose -f ./docker-compose.yml down
run: docker-compose --profile default-indexer -f ./docker-compose.yml down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ___DOCKER___: ##
docker-build-indexer:
docker build -t nffl-indexer -f ./indexer/Dockerfile .
docker-build-fastnear-indexer:
docker build -t nffl-indexer -f ./indexer/FastIndexer.dockerfile .
docker build -t nffl-fast-indexer -f ./indexer/FastIndexer.dockerfile .
docker-build-relayer:
docker build -t nffl-test-relayer -f ./relayer/cmd/Dockerfile .
docker-build-aggregator:
Expand All @@ -62,7 +62,7 @@ docker-build-plugin:
docker build -t nffl-operator-plugin -f ./plugin/cmd/Dockerfile .
docker-build-images: docker-build-indexer docker-build-relayer docker-build-aggregator docker-build-operator docker-build-plugin ## builds and publishes indexer, operator and aggregator docker images
docker-start-everything: docker-build-images ## starts aggregator and operator docker containers
docker compose up
docker compose --profile default-indexer up

__CLI__: ##

Expand Down
35 changes: 35 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,41 @@ services:
indexer:
image: nffl-indexer:latest
container_name: nffl-indexer
profiles: ["1default-indexer"]
depends_on:
rmq:
condition: service_healthy
mainnet-anvil-setup:
condition: service_completed_successfully
indexer-setup:
condition: service_completed_successfully
ports:
- "3030:3030"
expose:
- 9090 # prometheus port
volumes:
- near_cli_data:/root/.near
- near_cli_keys:/root/.near-credentials
command:
- --rmq-address
- amqp://rmq:5672
- --da-contract-ids
- da2.test.near
- --da-contract-ids
- da3.test.near
- --rollup-ids
- "2"
- --rollup-ids
- "3"
- --metrics-ip-port-address
- "0.0.0.0:9090"
networks:
- nffl

fastnear-indexer:
image: nffl-fast-indexer:latest
container_name: nffl-fast-indexer
profiles: ["fast-indexer"]
depends_on:
rmq:
condition: service_healthy
Expand Down

0 comments on commit 3a5c329

Please sign in to comment.