Skip to content

Commit

Permalink
refactor(iota-indexer): Introduce analytical-worker in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-rufi committed Aug 19, 2024
1 parent d6c6767 commit 37f5a1b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iota-indexer/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Indexer {
metrics: IndexerMetrics,
) -> Result<(), IndexerError> {
info!(
"Sui Indexer Analytical Worker (version {:?}) started...",
"Iota Indexer Analytical Worker (version {:?}) started...",
env!("CARGO_PKG_VERSION")
);
let mut processor_orchestrator = ProcessorOrchestrator::new(store, metrics);
Expand Down
26 changes: 26 additions & 0 deletions docker/pg-services-local/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,32 @@ services:
- postgres
- indexer-sync

analytical-worker:
image: iota-indexer
container_name: analytical-worker
hostname: analytical-worker
restart: on-failure
networks:
iota-network:
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info
- RPC_WORKER_THREAD=12
command:
- /usr/local/bin/iota-indexer
- --db-url=postgres://iota_indexer:iota_indexer@postgres:5432/iota_indexer
- --rpc-client-url=http://local-network:9000
- --client-metric-port=9181
- --rpc-server-port=9000
- --analytical-worker
ports:
- "127.0.0.1:9006:9000/tcp"
- "127.0.0.1:9184:9181/tcp"
depends_on:
- local-network
- postgres
- indexer-sync

graphql-server:
image: iota-graphql-rpc
build:
Expand Down

0 comments on commit 37f5a1b

Please sign in to comment.