feat: metrics port update -> :5002
This commit is contained in:
22
dev/docker-compose.postgres.yaml
Normal file
22
dev/docker-compose.postgres.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
- indexer-pg:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
indexer-pg:
|
||||
driver: local
|
||||
@@ -8,15 +8,26 @@ services:
|
||||
- POSTGRES_USER=postgres
|
||||
volumes:
|
||||
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
||||
- indexer-pg:/var/lib/postgresql/data
|
||||
- celo-indexer-pg:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
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
|
||||
|
||||
volumes:
|
||||
indexer-pg:
|
||||
celo-indexer-pg:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user