feat: metrics port update -> :5002

This commit is contained in:
2024-06-10 15:45:43 +08:00
parent 83bb29f217
commit fb22f26e18
5 changed files with 100 additions and 6 deletions

View 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

View File

@@ -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