Skip to content

Commit

Permalink
Merge pull request #5952 from ethereum-optimism/willc/docker-compose-…
Browse files Browse the repository at this point in the history
…processor

feat(indexer): Add processor to docker-compose
  • Loading branch information
OptimismBot authored Aug 15, 2023
2 parents e5e5004 + c1d92d7 commit 6c349fa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions indexer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,29 @@ services:
- postgres_data:/data/postgres

indexer:
build:
context: ..
dockerfile: indexer/Dockerfile.refresh
command: ["indexer-refresh", "processor"]
# healthcheck:
# Add healthcheck once figure out good way how
# maybe after we add metrics?
ports:
- 8080:8080
environment:
- INDEXER_DB_PORT=5432
- INDEXER_DB_USER=db_username
- INDEXER_DB_PASSWORD=db_password
- INDEXER_DB_NAME=db_name
- INDEXER_DB_HOST=postgres
- INDEXER_CONFIG=/configs/indexer.toml
volumes:
- ./indexer.toml:/configs/indexer.toml
depends_on:
postgres:
condition: service_healthy

api:
build:
context: ..
dockerfile: indexer/Dockerfile
Expand Down

0 comments on commit 6c349fa

Please sign in to comment.