Skip to content

Commit

Permalink
feat(indexer): Add processor to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Cory authored and Will Cory committed Jun 9, 2023
1 parent afc5509 commit eb8e6a0
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 @@ -16,6 +16,29 @@ services:
volumes:
- postgres_data:/data/postgres

processor:
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: ..
Expand Down

0 comments on commit eb8e6a0

Please sign in to comment.