Skip to content

Commit

Permalink
Changes to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mj52951 committed Dec 17, 2024
1 parent 328738b commit 7cd816e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,20 @@ services:
ports:
- "23798:${DB_PORT}"
env_file: ./envs/.env.init
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_NAME} && psql -U ${DB_USERNAME} -d ${DB_NAME} -c 'SELECT 1'"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
indexer-init:
build:
context: .
dockerfile: ./Dockerfile
restart: on-failure
depends_on:
- db
db:
condition: service_healthy
env_file: ./envs/.env.init
indexer_evm1:
build:
Expand Down

0 comments on commit 7cd816e

Please sign in to comment.