eth-indexer/dev/docker-compose.yaml

33 lines
824 B
YAML
Raw Normal View History

2024-06-10 09:36:26 +02:00
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
user: postgres
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
2024-06-10 09:45:43 +02:00
- celo-indexer-pg:/var/lib/postgresql/data
2024-06-10 09:36:26 +02:00
ports:
- "127.0.0.1:5433:5432"
2024-06-10 09:36:26 +02:00
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
2024-06-10 09:45:43 +02:00
retries: 5
celo-indexer:
image: celo-indexer:latest
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
# Point to the correct celo-tracker JetStream instance
- INDEXER_JETSTREAM__ENDPOINT=nats://nats:4222
ports:
- 127.0.0.1:5002:5002
2024-06-10 09:36:26 +02:00
volumes:
2024-06-10 09:45:43 +02:00
celo-indexer-pg:
2024-06-10 09:36:26 +02:00
driver: local